UNPKG

identifiers-orcid

Version:

Extract, validate and normalize ORCID identifiers.

34 lines (20 loc) 927 B
# Identifiers - ORCID [![Build Status](https://travis-ci.org/altmetric/identifiers-orcid.svg?branch=master)](https://travis-ci.org/altmetric/identifiers-orcid) Extract, validate and normalize [ORCID identifiers](http://orcid.org/). **Current version:** 0.1.1 **Supported Node.js versions:** 4, 5, 6, 7 ## Installation Add the following to your `package.json` via `yarn add identifiers-orcid` or `npm install --save identifiers-orcid`: ```shell "identifiers-orcid": "^0.1.0" ``` ## Usage ```javascript const orcid = require("identifiers-orcid"); orcid.extract("orcid.org/0000-0002-0088-0058"); //=> ["0000-0002-0088-0058"] ``` ## Other versions We also maintain versions of this library for [Ruby](https://github.com/altmetric/identifiers) and [PHP](https://github.com/altmetric/php-identifiers). ## License Copyright © 2017 Altmetric LLP Distributed under the [MIT License](http://opensource.org/licenses/MIT).