UNPKG

astroboy

Version:

Astroboy(阿童木)is a Nodejs SFB(Separation of Front and Back ends) framework, built on koa2.

14 lines 427 B
"use strict"; const path = require("path"); const fs = require("fs"); const Loader_1 = require("../core/Loader"); class AstroboyPkgLoader extends Loader_1.Loader { load() { const pkgPath = path.resolve(__dirname, '../package.json'); if (fs.existsSync(pkgPath)) { this.app.pkg = require(pkgPath); } } } module.exports = AstroboyPkgLoader; //# sourceMappingURL=AstroboyPkgLoader.js.map