@citation-js/plugin-doi v0.7.18
@citation-js/plugin-doi
Plugin for DOI input for Citation.js.
Install
npm install @citation-js/plugin-doiUsage
Register by importing the package:
require('@citation-js/plugin-doi')'Polite' API access
The plugin fetches data from DOIs using DOI Content Negotiation, which means the Crossref, DataCite, and mEDRA APIs are indirectly used.
Crossref strongly encourages
adding a mailto: link to the User-Agent header or URL parameters
to get higher rate limits. Because the Crossref API is only used indirectly,
the URL parameter method cannot be used consistently. Additionally, the User-Agent
header cannot be set in the browser. For non-browser usage however,
the user agent can be set like this:
const { util, version } = require('@citation-js/core')
util.setUserAgent(`Example Foo (mailto:foo@example.org) Citation.js/${version} Node.js/${process.versions.node}`)Formats
Formats and other features added by this plugin.
Input
Supports DOIs inputted in the following ways:
@doi/api: adoi.orgURL@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 thetypevalue in certain API responses
10 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago