factories

factories.js ============

npm install factories
363 downloads in the last week
1 414 downloads in the last month
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
npm loves you