prov
v0.2.0
Published
Simple Provider & Readymades
Downloads
20
Readme
prov
Simple Provider & Readymades
Install
$ npm install prov
Use
import Provider from 'prov/dist/Provider';
function factoryFunction(id) {
return new MyObject(id);
}
let myProvider = new Provider(factoryFunction);
let obj = myProvider.get("objectIdentifier");
Extend
import Provider from 'prov/dist/Provider';
export default class MyProvider extends Provider {
constructor() {
super(myProviderObjectFactory);
//additional construction code
}
//public api
}