Extract, validate and normalize PubMed IDs.
Current version: 0.1.1
Supported Node.js versions: 18, 20, 22, 23
Add the following to your package.json
via yarn add identifiers-pubmed
or npm install --save identifiers-pubmed
:
"identifiers-pubmed": "^0.1.0"
const pubmed = require("identifiers-pubmed");
pubmed.extract(" 0123\n456\n ");
//=> ["123", "456"]
We also maintain versions of this library for Ruby and PHP.
Copyright © 2017-2024 Altmetric LLP
Distributed under the MIT License.