/usr/share/doc/node-bind-obj-methods/README.md is in node-tap 11.0.0+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # bind-obj-methods
Bind methods to an object from that object or some other source.
Optionally specify a set of methods to skip over.
Also binds non-enumerable methods, retaining their
non-enumerable-ness.
## API
`bindObjMethods(obj, [source], [omit])`
Bind all the methods from source onto obj, skipping over anything in
the `omit` list. `omit` can be either an array or an object of
boolean values. `source` defaults to `obj` if not specified.
## USAGE
```js
var bindObjMethods = require('bind-obj-methods')
var obj = {
method: () => this.foo,
foo: 'bar'
}
var m = obj.method
m() // undefined
bindObjMethods(obj)
m = obj.method
m() // 'bar'
```
|