get-module-name [](https://travis-ci.org/chinanf-boy/get-module-name)
June 1, 2018 · View on GitHub
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