0.0.100021 • Published 3 years ago
@mongodb-model/app v0.0.100021
DB Query
Standalone base module extending the NodeJs Transform API with few other functionalities added
Installation
$ yarn add @mongodb-model/app
or
$ npm i @mongodb-model/app
Simple Usage Example
const Base = require('@mongodb-model/app');
const base = new Base();
base.apiGet();
base.on('apiGet', data => console.log(data));
base.on('apiGet-error', error => console.error(error));
or
class MyWonderfulClass extends require('@mongodb-model/app') {
constructor(...arrayOfObjects) {
super({ objectMode: true, encoding: "utf-8", autoDestroy: true });
arrayOfObjects.forEach(option => {
if(Object.keys(option).length > 0){
Object.keys(option).forEach((key) => { if(!this[key]) this[key] = option[key];})
}
});
this.autobind(MyWonderfulClass);
this.autoinvoker(MyWonderfulClass);
this.setMaxListeners(Infinity);
}
};
0.0.100021
3 years ago
0.0.100020
3 years ago
0.0.100019
3 years ago
0.0.100018
3 years ago
0.0.100017
3 years ago
0.0.100016
3 years ago
0.0.100015
3 years ago
0.0.100014
3 years ago
0.0.100013
3 years ago
0.0.100012
3 years ago
0.0.100011
3 years ago
0.0.100010
3 years ago
0.0.0
3 years ago