pname

Get the name of the calling package.

Usage no npm install needed!

<script type="module">
  import pname from 'https://cdn.skypack.dev/pname';
</script>

README

Package name Travis CI Build Status

Get the name of the calling package.

NPM Badge

Install

npm install pname

Usage

const packageName = require("pname");

console.log(packageName)
//=> 'somePackageName'

API

packageName

Type: string

The name of the calling package.