Extract, validate and normalize DOIs (including ISBN-As).
Current version: 0.2.1
Supported Node.js versions: 18, 20, 22, 23
Add the following to your package.json
via yarn add identifiers-doi
or npm install --save identifiers-doi
:
"identifiers-doi": "^0.2.0"
const doi = require("identifiers-doi");
doi.extract("My favourite DOI is 10.1038/nplants.2015.3");
//=> ["10.1038/nplants.2015.3"]
We also maintain versions of this library for Ruby and PHP.
Copyright © 2017-2024 Altmetric LLP
Distributed under the MIT License.