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

Readme

Keywords

none

Package Sidebar

Install

npm i factories

Weekly Downloads

1,831

Version

0.0.8

License

BSD

Last publish

Collaborators

  • architectd
  • crcn