/
var
/
www
/
flurhymez
/
node_modules
/
pkg-dir
/
/var/www/flurhymez/node_modules/pkg-dir
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
1066
0644
edit
dl
rm
index.js
452
0644
edit
dl
rm
license
1109
0644
edit
dl
rm
package.json
1896
0644
edit
dl
rm
readme.md
1282
0644
edit
dl
rm
Edit:
/var/www/flurhymez/node_modules/pkg-dir/index.js
(452B)
'use strict'; const path = require('path'); const findUp = require('find-up'); const pkgDir = async cwd => { const filePath = await findUp('package.json', {cwd}); return filePath && path.dirname(filePath); }; module.exports = pkgDir; // TODO: Remove this for the next major release module.exports.default = pkgDir; module.exports.sync = cwd => { const filePath = findUp.sync('package.json', {cwd}); return filePath && path.dirname(filePath); };
Save
cmd:
run