pkg-dir-name
v1.0.0
Published
Find name from closest package.json or its directory name.
Downloads
3
Maintainers
Readme
pkg-dir-name
Find name from closest package.json or its directory name.
Installation
npm install pkg-dir-name --save
Usage
const pkgDirName = require('pkg-dir-name')
pkgDirName().then(name => {
console.log(name) // => pkg-dir-name
})