cheescake
Another factory library
Last updated 8 years ago by agravem .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install cheescake 
SYNC missed versions from official npm registry.

Cheesecake

Cheesecake is a factory library made to create simple data objects desregarding constructors.

Example

var Factory = require('cheesecake').Factory
Factory.define("favorite", {
  name: "White Chocolate Raspberry Cheesecake",
  servings: 6
})

// Creates a new favorite cheesecake
Factory.favorite()
// { name: "White Chocolate Raspberry Cheesecake", servings: 6 }

// Creates a new favorite increasing servings
Factory.favorite({ servings: 8 })
// { name: "White Chocolate Raspberry Cheesecake", servings: 8 }

Current Tags

  • 0.0.1                                ...           latest (8 years ago)

1 Versions

  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |