cheescake

Another factory library

npm install cheescake
2 downloads in the last week
4 downloads in the last month

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 }
npm loves you