Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    cheescakepublic

    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 } 

    Keywords

    none

    install

    npm i cheescake

    Downloadsweekly downloads

    1

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar