UNPKG

doi-utils

Version:

Set of utility functions to help with handling DOI(Digital Object Identifier)

10 lines (9 loc) 298 B
/** * Validate that the input DOI string is valid. * * Uses DOI pattern described here: https://www.crossref.org/blog/dois-and-matching-regular-expressions/ * * @param possibleDOI * @returns true if DOI is valid */ export declare function validatePart(possibleDOI?: string | null): boolean;