获取项目根目录路径
var prPath = require('pr-root')
prPath.getRootPath('package.json');
prPath.getRootPath('node_modules');
var prPath = require('pr-root')
prPath.getRootPath('package.json');
prPath.getRootPath('node_modules');
npm i pr-root
0
1.0.2
ISC
2.1 kB
7