Nitrogenous Polymorphic Molecule
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jstransformer-tomlpublic

    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

    install

    npm i jstransformer-toml

    Downloadsweekly downloads

    369

    version

    0.6.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar