0.1.3 • Published 7 years ago

leitstand-faker v0.1.3

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

leitstand-faker NPM version Build Status Dependency Status

Faker plugin for Leitstand

Installation

First, install leitstand-cli, if you haven't done yet. Then install the plugin as dependency into your Leitstand app via:

npm install leitstand-faker --save

Usage

leitstand
  .plugin('faker', {
    settings: {
      locale: 'de'
    }
  })
  .widget('faker-widget', {
    plugin: 'faker',
    schedule: false,
    methods: {
      name: 'fake',
      opts: {
        name: '{{name.lastName}}, {{name.firstName}} {{name.suffix}}',
        company: '{{company.companyName}}, {{address.country}}',
        motto: '{{hacker.phrase}}'
      }
    }
  })

API

Faker.js

License

MIT © Sebastian Krüger