https://github.com/jstransformers/jstransformer-resin
Resin support for JS Transformers
https://github.com/jstransformers/jstransformer-resin
Last synced: over 1 year ago
JSON representation
Resin support for JS Transformers
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-resin
- Owner: jstransformers
- License: mit
- Created: 2015-04-14T07:08:50.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T20:30:16.000Z (over 3 years ago)
- Last Synced: 2025-02-23T04:04:24.684Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-resin
- Size: 67.4 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-resin
[Resin](https://github.com/topcoat/resin) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-resin)
[](https://codecov.io/gh/jstransformers/jstransformer-resin)
[](http://david-dm.org/jstransformers/jstransformer-resin)
[](https://www.npmjs.org/package/jstransformer-resin)
## Installation
npm install jstransformer-resin
## API
```js
var resin = require('jstransformer')(require('jstransformer-resin'))
var options = {
browsers: ['last 2 version', 'ios', 'android 4'],
// Add a namespace to your classes to avoid collisions
namespace: 'jstransformer',
// Add a license to the final output
license: '// Copyright 2015 and stuff \n'
}
var css = ':root { var-grey: #666; } .btn { box-shadow: 0 1px var(grey); }'
resin.render(css, options)
//=> '// Copyright 2015 and stuff \n.topcoat-btn {\n box-shadow: 0 1px #666;\n}'
```
## License
MIT