Negatory. Postpone Mission.
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jstransformer-inipublic

    npm mit license build status coverage status deps status

    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

    License MIT license

    Copyright (c) 2015 JSTransformers, Charlike Mike Reagent, contributors.
    Released under the MIT license.


    Proudly generated by docks(1), April 10, 2015

    install

    npm i jstransformer-ini

    Downloadsweekly downloads

    284

    version

    0.3.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

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