npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

pkg-dir-name

1.0.0 • Public • Published

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
})

install

npm i pkg-dir-name

Downloadsweekly downloads

6

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability