Deps
npm install
Usage & installation
As a module
npm install gennifer --save
var gennifer = ; var { return user: '@recursivefunk' text: 'I am the one' ; }; gennifer; // generate a data item var item = gennifer; // use a stream gennifer // optional // will return the genrated data and automatically emit the new data ;
Loading templates from a file
// in templates.js // casual is the preferred underlying data generator but you can generate // data with your templates in any manner you wish var casual = ; moduleexports = { return dateFoo: casualdate aName: casualname } // later... gennifer; var templates = gennifer; console; // { aTemplate: [Function] }
As a standalone-socket server
[sudo] npm install -g gennifer
genneifer [ -f 1000 -v 1 -p 8080 -t ]
Just type
genneifer -h
For available options
Streams
Gennifer is also a native nodejs stream.
gennifer ;
Run Tests
You'll need to have redis running locally for all tests to pass
npm test
To Do
Check the issues section