UNPKG

185 BJavaScriptView Raw
1const fse = require('fs-extra');
2const path = require('path');
3
4/**
5 * 获取 package.json 文件的内容
6 */
7module.exports = dir => fse.readJsonSync(path.join(dir, 'package.json'));