devebot
Version:
Nodejs Microservice Framework
21 lines (20 loc) • 488 B
JavaScript
;
const block = require("./block");
const lodash = require("lodash");
function Toolset() {
const box = block(function () {
try {
// eslint-disable-next-line
return require("devebot-tools");
} catch (error) {
return {};
}
});
this.has = function (packageName) {
return !lodash.isNil(lodash.get(box, packageName));
};
this.get = function (packageName) {
return lodash.get(box, packageName);
};
}
module.exports = new Toolset();