Contrived
a simple way to load contrived data for your node app
Usage
-
Create a
contrived/
directory at the root of your node appapp.coffee contrived/ package.json
-
Create yaml model files for each model you would like to load
contrived/ users.yaml tasks.yaml
an example
users.yaml
would look like:- firstName: JohnlastName: Doeemail: jdoe@fake.com- firstName: JanelastName: Dameemail: jdame@fake.com -
Require the
contrived
modulecontrived = require 'contrived' -
Use some contrived data
consolelog contrivedusers
Todo
- support additional data formats
- support nested
contrives