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

    factoriespublic

    factories = require("./src")
     
    classFactory = factories.class SomeClass
    someClassInstance = classFactory.create data
     
    fnFactory    = factories.fn (data) -> data
    fnInstance   = fnInstance.create data
     
    # resolve the factory depending on the type 
    factory      = factories.factory SomeClass
    someClassInstance = factory.create data

    Keywords

    none

    install

    npm i factories

    Downloadslast 7 days

    341

    version

    0.0.8

    license

    BSD

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar