node-methodmissing
capture method missing in node.js
install
npm i methodmissing
usage
inherits method missing
mm = ;fs = ;mmfs = ; mmfs; // truemmfs; // missing
require with method missing
mm = ;fs = ; fs; // truefs; // missing
mm(object, callback)
object [ string | object ]
string
: returns required object inherited method missingobject
: returns object inherited method missing
callback [ function (key, arg) ]
- called on missing method called
var mm = ;var fs = ; fs; // true, callback not called fs; // undefined, callback called [1] // key: 'existSync'// arg: { '0': '.' }