yaypack

A module unifying JSON configs for various tools

npm install yaypack
4 downloads in the last month

Usage

var packer = require('yaypack');
packer.unpack({
    path: './', 
    files: {
        "some.json" : {
            "testProp" : "testValue",
            "testObject" : {
                "someObjects" : "contents"
            }
        },
        "cooltool.json" : {
            "coolconf" : 1
        }
    }
});

This writes the contents of "some.json" and "cooltool.json" to files with the same names to the given path. Useful as a pre-build step when various tools require a lot of different json cofiguration files.

npm loves you