Home

Awesome

get-module-name Build Status

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

License

MIT © chinanf-boy