shibiaoz / pr-path

get project path by specila file or directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

获取项目根目录路径

var prPath = require('pr-root')
prPath.getRootPath('package.json');
prPath.getRootPath('node_modules');

test

About

get project path by specila file or directory


Languages

Language:JavaScript 100.0%