node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

dir-structure

Dir-Structure

Build Status

NodeJs Package for creating directory structure based upon a JSON structure.

Installation

npm install dir-structure

Usage

var dirStructure = require('dir-structure').create();
 
var structureJSON = {
  'aDirectory' : {
    'aSubDirectory' : {}
  },
  'anotherDirectory' : {}
};
dirStructure.create(structureJSON);
 
//or create at location... 
dirStructure.create(structureJSON, '/usr/local/');