An open API service indexing awesome lists of open source software.

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

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"
```