0.7.16 • Published 9 months ago

@citation-js/plugin-doi v0.7.16

Weekly downloads
4,669
License
MIT
Repository
github
Last release
9 months ago

@citation-js/plugin-doi

Plugin for DOI input for Citation.js.

NPM version NPM total downloads License

Dependency status

Install

npm install @citation-js/plugin-doi

Usage

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: a doi.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 the type value in certain API responses
0.7.16

9 months ago

0.7.13

1 year ago

0.7.14

1 year ago

0.7.11

1 year ago

0.7.9

1 year ago

0.7.8

1 year ago

0.7.7

1 year ago

0.7.6

1 year ago

0.6.9

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.8

2 years ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.7

3 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.5.0-alpha.10

4 years ago

0.5.0-alpha.9

5 years ago

0.5.0-alpha.7

5 years ago

0.5.0-alpha.6

5 years ago

0.5.0-alpha.5

6 years ago

0.5.0-alpha.4

6 years ago

0.5.0-alpha.3

6 years ago

0.5.0-alpha.2

6 years ago

0.5.0-alpha.1

6 years ago

0.5.0-alpha.0

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.3

6 years ago

0.4.3-alpha.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.4.0-rc.4

6 years ago

0.4.0-rc.3

6 years ago

0.4.0-rc.2

6 years ago

0.4.0-rc.1

7 years ago

0.4.0-rc.0

7 years ago