https://github.com/jstransformers/jstransformer-duo
Duo support for JSTransformers
https://github.com/jstransformers/jstransformer-duo
Last synced: over 1 year ago
JSON representation
Duo support for JSTransformers
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-duo
- Owner: jstransformers
- License: mit
- Created: 2015-06-08T20:46:46.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T02:33:06.000Z (about 6 years ago)
- Last Synced: 2024-04-26T05:07:09.788Z (about 2 years ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-duo
- Size: 64.5 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-duo
[Duo](http://duojs.org) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-duo)
[](https://codecov.io/gh/jstransformers/jstransformer-duo)
[](http://david-dm.org/jstransformers/jstransformer-duo)
[](https://www.npmjs.org/package/jstransformer-duo)
## Installation
npm install jstransformer-duo
## API
```js
var duo = require('jstransformer')(require('jstransformer-duo'))
var options = {
root: __dirname
}
duo.render('var a = 0;', options).body
//=> Compiled source
```
### Options
#### root
Matches the [`root`](https://github.com/duojs/duo/blob/master/docs/api.md#new-duoroot) directory when creating the Duo object.
## License
MIT