orcid
A utility and CLI to work with ORCID in your applications.
Install
npm install orcid
Overview & Usage
import orcid from 'orcid';
const isValid = orcid.validate('https://orcid.org/0000-0002-7859-8394');
orcid.buildUrl('http://orcid.org/0000-0002-7859-8394');
orcid.buildUrl('https://www.orcid.org/0000-0002-7859-8394');
orcid.buildUrl('0000-0002-7859-8394');
Included Utilities
validate
- Validates if a single ORCID string is validnormalize
- Normalizes an ORCID url or string into a ORCID identifier of the form 0000-0002-7859-8394
buildUrl
- Builds a URL to https://orcid.org, includes normalization
Options
strict
: only accept the ID part without the URL