get-module-name
v0.0.1
Published
just get module name
Downloads
6
Readme
get-module-name
just get module name
Install
npm install get-module-name
yarn add get-module-name
Usage
const getname = require('get-module-name');
// process.cwd() package.json name
await getname() // Promise
getname.sync() // sync
API
getname
name: | getname
---------|----------
Type: | function:Promise
Desc: | return package.json name
sync
name: | sync
---------|----------
Type: | function
Desc: | return package.json name
License
MIT © chinanf-boy