factories = require"./src" classFactory = factoriesclass SomeClasssomeClassInstance = classFactorycreate data fnFactory = factoriesfn datafnInstance = fnInstancecreate data # resolve the factory depending on the type factory = factoriesfactory SomeClasssomeClassInstance = factorycreate data
factories
0.0.8 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i factories
Repository
Weekly Downloads
1,875
Version
0.0.8
License
BSD