npm.io
0.2.1 • Published 12 years ago

generatorjs

Licence
Version
0.2.1
Deps
6
Vulns
5
Weekly
0

Generator

A super simple generator. It takes a source of files that are ejs templates and a destination directory along with some options (for the templates). That's it.

Installation

Npm:

npm install generatorjs

Getting Started

Require generatorjs:

var generator = require('generatorjs');

Create a new generator:

generator(__dirname + '/templates')
  .dest(process.cwd())
  .vars({ name: 'foo' })
  .run()
  .then(function() {
    // success!
  });

By default, generatorjs also logs what it's doing.

Tests

make test

License

MIT