Skip to content

altmetric/identifiers-doi

Repository files navigation

Identifiers - DOI

Extract, validate and normalize DOIs (including ISBN-As).

Current version: 0.2.1
Supported Node.js versions: 18, 20, 22, 23

Installation

Add the following to your package.json via yarn add identifiers-doi or npm install --save identifiers-doi:

"identifiers-doi": "^0.2.0"

Usage

const doi = require("identifiers-doi");

doi.extract("My favourite DOI is 10.1038/nplants.2015.3");
//=> ["10.1038/nplants.2015.3"]

Other versions

We also maintain versions of this library for Ruby and PHP.

License

Copyright © 2017-2024 Altmetric LLP

Distributed under the MIT License.