Skip to content

Commit

Permalink
Update util docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed Apr 29, 2017
1 parent e4df16c commit b23e775
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/developer-guide/api/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,26 @@ Check if a string is a absolute URL.

```js
utils.isAbsoluteURL('http://example.com'); // true
utils.isAbsoluteURL('file.less'); // false
```

## `isVariable()`
Check if a value is a Less variable.

```js
utils.isVariable('@foo'); // true
utils.isVariable('blue'); // false
```

## `parseSelector`
Parse a selector using `postcss-selector-parser`.
Parse a selector using [`postcss-selector-parser`](https://github.com/postcss/postcss-selector-parser).

```js
utils.parseSelector('.foo'); // Parser tree
```

## `parseValue`
Parse a value using `postcss-values-parser`.
Parse a value using [`postcss-values-parser`](https://github.com/lesshint/postcss-values-parser).

```js
utils.parseValue('10px'); // Parser tree
Expand Down

0 comments on commit b23e775

Please sign in to comment.