README
Automatic Context Binding
About
This is a small package that automatically binds 'this' context to every method outside of your class constructor.Install
npm i --save context-binder
Usage
const contextBind = require('context-binder');
class Test {
constructor() {
contextBind(this);
}
foo() {
// do something
}
bar() {
// do something
}
};