factories

0.0.8 • Public • Published
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

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i factories

Weekly Downloads

1,752

Version

0.0.8

License

BSD

Last publish

Collaborators

  • architectd
  • crcn