0.3.2 • Published 9 years ago
jstransformer-ini v0.3.2
ini support for JS Transformers
Install
npm i --save jstransformer-ini
npm test
Usage
For more use-cases see the tests
var ini = require('jstransformer')(require('jstransformer-ini'));
var opts = {};
var result = ini.render('[foo]\nbar = "baz"\nqux = true', opts);
console.log(JSON.parse(result.body))
//=> '{"foo": {"bar": "baz", "qux": true}}'
var promise = ini.renderFileAsync('./path/to/config.ini', opts);
promise.then(function(data) {
console.log(JSON.parse(data.body));
//=> '{"foo": {"bar": "baz", "qux": true}}'
});
Related
- ini: ini parser for Node.js (parses ini spec v0.4.0)
- jstransformer-toml: TOML (minimal configuration file format) support for JS Transformers
- jstransformer-myth: Myth support for JS Transformers
- jstransformer: Normalize the API of any jstransformer
- jstransformer-cson: Transform CSON to JSON
- jstransformer-rework: ReworkCSS support for JS Transformers. CSS to CSS transformation.
- assertit: Thin sugar layer on top of
testit
framework,is-kindof
andassert
.
License
Copyright (c) 2015 JSTransformers, Charlike Mike Reagent, contributors.
Released under the MIT
license.
Proudly generated by docks(1), April 10, 2015