https://github.com/jstransformers/jstransformer-ini
ini support for JS Transformers
https://github.com/jstransformers/jstransformer-ini
Last synced: 2 months ago
JSON representation
ini support for JS Transformers
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-ini
- Owner: jstransformers
- License: mit
- Created: 2015-04-03T14:09:11.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T04:19:31.000Z (about 6 years ago)
- Last Synced: 2026-01-03T10:30:12.506Z (6 months ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-ini
[ini](https://www.npmjs.com/package/ini) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-ini)
[](https://codecov.io/gh/jstransformers/jstransformer-ini)
[](http://david-dm.org/jstransformers/jstransformer-ini)
[](https://www.npmjs.org/package/jstransformer-ini)
## Installation
npm install jstransformer-ini
## API
```js
var ini = require('jstransformer')(require('jstransformer-ini'));
var content = `
[ini]
bar = "baz"
qux = true
`
var result = ini.render(content);
console.log(JSON.parse(result.body))
//=> '{"ini": {"bar": "baz", "qux": true}}'
```
## License
MIT