UNPKG

publication-ids

Version:

Javascript / Typescript validator and parse for publication ids; DOI, PMID, PMCID, ISBN, and ISSN

9 lines (8 loc) 312 B
/** * Validates if the given identifier could be a DOI * * @param {string} identifier - The identifier string to validate. * @returns {boolean} `true` if the identifier could be a valid DOI, `false` otherwise. */ declare const _default: (identifier: string | undefined) => boolean; export default _default;