factories

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
factories
000.0.88 years ago9 years agoMinified + gzip package size for factories in KB

Readme

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