modder
modder is get/set interface for sharing functions and hooking custom behavior into JavaScript modules that provide hooks to do so. It lets you define an interface without implementing all the behavior at once or at all.
npm install modder --save
API
modder(name?, value?)
modder(name)
getmodder(name, value)
set
example
// define some API and provide a hook for overloadingvar api = { if size > 1000 'evacuate' else this } { } // implement behavior latervar modder =
instances
If you need multiple modder
instances:
var modder1 = var modder2 =
License
MIT