Awesome
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 |
With
pkg name return Object, so ,i change String Type
use by
- node-modules-size show node_modules hole size
- two-log I just need two style message show
License
MIT © chinanf-boy