# get-module-name [![Build Status](https://travis-ci.org/chinanf-boy/get-module-name.svg?branch=master)](https://travis-ci.org/chinanf-boy/get-module-name) > just get module name ## Install ``` npm install get-module-name ``` ``` yarn add get-module-name ``` ## Usage ```js 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-conf](https://github.com/sindresorhus/pkg-conf) > pkg name return Object, so ,i change String Type ## use by - [node-modules-size](https://github.com/chinanf-boy/node-modules-size) show node_modules hole size - [two-log](https://github.com/chinanf-boy/two-log) I just need two style message show ## License MIT © [chinanf-boy](http://llever.com)