https://github.com/qubitproducts/pkguid
Parse and generate npm package names
https://github.com/qubitproducts/pkguid
ceh cmh implement
Last synced: about 1 year ago
JSON representation
Parse and generate npm package names
- Host: GitHub
- URL: https://github.com/qubitproducts/pkguid
- Owner: QubitProducts
- Created: 2014-09-16T14:34:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-18T14:46:44.000Z (over 11 years ago)
- Last Synced: 2025-03-17T22:51:56.470Z (about 1 year ago)
- Topics: ceh, cmh, implement
- Language: JavaScript
- Homepage:
- Size: 143 KB
- Stars: 0
- Watchers: 29
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pkguid
====
A module for parsing & creating package UIDs which supports CommonJS/AMD format
### Usage
```javascript
var pkguid = require("pkguid");
pkguid.parse("@namespace/name@1.0.0");
// returns { name: "@namespace/name", version: "1.0.0" }
pkguid.create("name", "1.0.0");
// returns "name@1.0.0"
```