0.0.7 • Published 7 years ago

structure-generator v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Structure-Generator

A simple dependencie to create a folder structure over given text file

Build Status

Installing

$ npm install -g structure-generator

How to use

$ structure-generator template-file-path

Example

Consider this our project

src/
 index.js
structure.md

Which structure.md has this content

root/
  file.txt
  folder/
    file.txt

Then, simple execute:

$ structure-generator structure.md src

This will generate the given structure in the structure.md file, therefore our project will look like:

src/
  root/
    file.txt
    folder/
      file.txt
  index.js
structure.md

Template file rules

  1. To be considered a file, it must have a .(dot) in it's name
  2. A file to be considered "nested" must have more padding at left then it's "father", before any non-space characters