https://github.com/jstransformers/jstransformer-css
Transform CSS to JSON AST using `reworkcss/css`.
https://github.com/jstransformers/jstransformer-css
Last synced: 8 months ago
JSON representation
Transform CSS to JSON AST using `reworkcss/css`.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-css
- Owner: jstransformers
- License: mit
- Created: 2015-04-02T23:48:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T04:14:58.000Z (about 6 years ago)
- Last Synced: 2025-08-28T08:38:10.342Z (10 months ago)
- Language: JavaScript
- Size: 57.6 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-css
[CSS -> AST](https://github.com/reworkcss/css) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-css)
[](https://codecov.io/gh/jstransformers/jstransformer-css)
[](http://david-dm.org/jstransformers/jstransformer-css)
[](https://www.npmjs.org/package/jstransformer-css)
## Installation
npm install jstransformer-css
## API
> For more use-cases see the [tests](./test/index.js)
```js
var css = require('jstransformer-css')
css.render('body {\n font-size: 12px;\n}');
//=> json abstract syntax tree
```
## License
MIT