identifiers-urn
v0.2.0
Published
Extract, validate and normalize URNs.
Downloads
216
Readme
Identifiers - URN
Extract, validate and normalize URNs.
Current version: 0.2.0
Supported Node.js versions: 4, 5, 6, 7
Installation
Add the following to your package.json
via yarn add identifiers-urn
or npm install --save identifiers-urn
:
"identifiers-urn": "^0.2.0"
Usage
const urn = require("identifiers-urn");
urn.extract("En un pueblo italiano urn:1234:abc al pie de la montaña URN:foo:bar%23.\\");
//=> ["urn:1234:abc", "URN:foo:bar%23."]
Other versions
We also maintain versions of this library for Ruby and PHP.
License
Copyright © 2017 Altmetric LLP
Distributed under the MIT License.