Tuxedo
Faker goes hipster, gets a mustache and a suit.
Getting Started
Install the module with: npm install tuxedo
You can also install tuxedo
as a global package and use it in the terminal.
npm install tuxedo -g
tuxedo -htuxedo -t template.jtpl -o output.json -c data.json
Examples
var tuxedo = ; tuxedo; tuxedo;
users.jtpl
output:
TODOs
- TODO Add solver to reference props in json structures
- TODO
bin: Have default values - TODO bin: If no arguments and no default template.jtpl show help
- TODO
repeat
take glue argument, so we can ignore it for CVS templates - TODO add country generator.
- TODO replace
helpers.repeat
withhandlebars-helpers-repeat
- TODO Add name initials
- TODO Add random string length
Check out http://chancejs.com/
TEMPLATES Consider templates taking an option hash instead of positional arguments. Instead of this:
"bio": "{{sentences 3 '.<br/>'}}"
"bio": "{{sentences 3 glue='.<br/>'}}"
Documentation
(Coming soon)
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
(Nothing yet)
License
Copyright (c) 2014 goliatone
Licensed under the MIT license.