Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ CSS parser / stringifier.
## Usage

```js
var css = require('css');
var obj = css.parse('body { font-size: 12px; }', options);
const css = require('css');
const obj = css.parse('body { font-size: 12px; }', options);
css.stringify(obj, options);
```

Expand Down Expand Up @@ -46,11 +46,11 @@ Accepts an AST `object` (as `css.parse` produces) and returns a CSS string.
### Example

```js
var ast = css.parse('body { font-size: 12px; }', { source: 'source.css' });
const ast = css.parse('body { font-size: 12px; }', { source: 'source.css' });

var css = css.stringify(ast);
const css = css.stringify(ast);

var result = css.stringify(ast, { sourcemap: true });
const result = css.stringify(ast, { sourcemap: true });
result.code // string with CSS
result.map // source map object
```
Expand Down