parse-package-name
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


parse-package-name

npm version npm downloads

Install

npm i parse-package-name

Usage

import { parse } from 'parse-package-name'

parse('@egoist/foo@1.0.0/bar.js')
//=>
// {name:'@egoist/foo', version:'1.0.0', path:'bar.js'}

version defaults to latest if not specified, path defaults to an empty string if not specified.

Sponsors

sponsors

License

MIT © EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i parse-package-name

Weekly Downloads

189,844

Version

1.0.0

License

MIT

Unpacked Size

4.12 kB

Total Files

6

Last publish

Collaborators

  • egoist
  • rem