Skip to content

Small helper to use faker inside your handlebars template

License

Notifications You must be signed in to change notification settings

jannisg/handlebars-faker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

handlebars-faker

Build Status npm version Dependency Status

Small helper to use faker inside your handlebars template

For a full list of all available fakes see https://github.com/marak/Faker.js/

Installation

npm install handlebars-faker --save-dev

Usage

var Handlebars = require('handlebars');
Handlebars.registerHelper('faker', require('handlebars-faker'));

var template = Handlebars.compile('{{faker "internet.email"}} - {{faker "lorem.words" 3}} - {{faker "random.number" min=4 max=15}}');
console.log(template({}));
// -> Patricia_Schamberger75@gmail.com - voluptas in omnis - 11

Changelog

Take a look at the CHANGELOG.md.

Contribution

You're free to contribute to this project by submitting issues and/or pull requests. This project is test-driven, so keep in mind that every change and new feature should be covered by tests. This project uses the semistandard code style.

License

This project is licensed under MIT.

About

Small helper to use faker inside your handlebars template

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%