0.0.1 • Published 11 years ago

yaypack v0.0.1

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

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.

0.0.1

11 years ago