jstransformer-toml

0.6.0 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i jstransformer-toml

Weekly Downloads

1

Version

0.6.0

License

MIT

Last publish

Collaborators

  • stoeffel
  • schtoeffel
  • hemanth
  • timothygu
  • calebeby
  • vanchoy
  • tunnckocore