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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.81,748latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.81,748
0.0.70
0.0.60
0.0.50
0.0.34
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i factories

Weekly Downloads

1,752

Version

0.0.8

License

BSD

Last publish

Collaborators

  • architectd
  • crcn