Plugin for DOI input for Citation.js.
npm install @citation-js/plugin-doi
Register by importing the package:
require('@citation-js/plugin-doi')
Formats and other features added by this plugin.
Supports DOIs inputted in the following ways:
-
@doi/api
: adoi.org
URL -
@doi/id
: a single DOI -
@doi/list+text
: whitespace-separated list of DOIs -
@doi/list+object
: array of DOIs
Additionally, the following internal type is exposed:
-
@doi/type
: fix thetype
value in certain API responses