jsontodir

0.1.2 • Public • Published

jsontodir

convert json to directory

DESCRIPTION

jsontodir is a tool for converting json object(or json file) to directory. You can pass a json object or a json file name to convert to directory.

NODE

var jsontodir = require('jsontodir');
jsontodir({
    'js': {
        'type': 'directory',
        'children': {
            'index.js': {
                'type': 'file',
                'content': 'http://g-assets.daily.taobao.net/alinw-utils/config-sample/demo/module-index.js'
            },
            'home.js': {
                'type': 'file',
                'content': 'test content'
            }
        }
    },
    'css': {
        'type': 'directory'
    }
});

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jsontodir

    Weekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • ermin.zem