@ianwalter/npm-short-name
Version:
Get the unscoped, camelCased name of a npm package
31 lines (19 loc) • 680 B
Markdown
> Get the unscoped, camelCased name of a npm package
[![npm page][npmImage]][npmUrl]
```console
yarn add @ianwalter/npm-short-name
```
```js
import npmShortName from '@ianwalter/npm-short-name'
const shortName = npmShortName('@ianwalter/decision-tree') // => decisionTree
```
Apache 2.0 with Commons Clause - See [LICENSE][licenseUrl]
Created by [Ian Walter](https://iankwalter.com)
[]: https://img.shields.io/npm/v/@ianwalter/npm-short-name.svg
[]: https://www.npmjs.com/package/@ianwalter/npm-short-name
[]: https://github.com/ianwalter/npm-short-name/blob/master/LICENSE