contrived
v0.0.1
Published
a simple way to load contrived data for your node app
Downloads
1
Readme
#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: John lastName: Doe email: [email protected] - firstName: Jane lastName: Dame email: [email protected]
Require the
contrived
modulecontrived = require 'contrived'
Use some contrived data
console.log contrived.users
##Todo
- [ ] support additional data formats
- [ ] support nested
contrives