0.6.0 • Published 7 years ago

jstransformer-toml v0.6.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

jstransforer-toml

TOML support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-toml

API

var toml = require('jstransformer')(require('jstransformer-toml'));
var opts = {};

var result = toml.render('[toml]\nbar = "baz"\nqux = true', opts);

console.log(JSON.parse(result).body)
//=> '{"toml": {"bar": "baz", "qux": true}}'


var promise = toml.renderFileAsync('./path/to/config.toml', opts);
promise.then(function(data) {
  console.log(JSON.parse(result).body);
  //=> '{"toml": {"bar": "baz", "qux": true}}'
});

License

MIT

0.6.0

7 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago