https://github.com/citation-js/plugin-pubmed

Citation.js plugin for PubMed and PubMed Central identifiers

https://github.com/citation-js/plugin-pubmed

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: ncbi.nlm.nih.gov
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.8%) to scientific vocabulary

Keywords

citation-js pubmed pubmed-central pubmed-identifiers
Last synced: 10 months ago · JSON representation

Repository

Citation.js plugin for PubMed and PubMed Central identifiers

Basic Info
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
citation-js pubmed pubmed-central pubmed-identifiers
Created almost 7 years ago · Last pushed over 3 years ago
Metadata Files
Readme Changelog License

README.md

This plugin makes use of the Literature Citation Exporter web service, which takes a PubMed or PubMed Central identifier and returns CSL.

In 2022, NCBI added a rate limit to the API that this plugin uses to get metadata from PubMed Central and PubMed identifiers. This rate limit forbids concurrent requests, and allows no more than 3 requests per second. For more information, see https://api.ncbi.nlm.nih.gov/lit/ctxp/.

Install

js npm install @citation-js/plugin-pubmed

Use

Install the plugin by require-ing it:

js require('@citation-js/plugin-pubmed')

It can then be used in two ways. PubMed Central identifiers are easy to recognize and the following code can be used:

```js const citejs = require('@citation-js/core') require('@citation-js/plugin-csl') require('@citation-js/plugin-pubmed')

citejs.Cite.async('PMC6613236') .then(Cite => console.log(Cite.format('bibliography', {template: 'vancouver'})) )

```

For PubMed identifiers, which are just numbers, one way is to just tell it is a PubMed identifier:

```js const citejs = require('@citation-js/core') require('@citation-js/plugin-csl') require('@citation-js/plugin-pubmed')

citejs.Cite.async('31209238', {forceType: '@pubmed/id'}) .then(Cite => console.log(Cite.format('bibliography', {template: 'vancouver'})) ) ```

Formats

Formats and other features added by this plugin.

Input

As input it recognizes PubMed identifiers if prefixed with pmid:. Of course, you can also indicate in your source code that the PubMed integer is an PubMed identifier. If prefixed with PMC, then the identifier is recognized as a PubMed Central identifier.

Output

The output is CSL.

Owner

  • Name: Citation.js
  • Login: citation-js
  • Kind: organization
  • Email: citationjs@protonmail.com

GitHub Events

Total
Last Year

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 32
  • Total Committers: 2
  • Avg Commits per committer: 16.0
  • Development Distribution Score (DDS): 0.281
Past Year
  • Commits: 6
  • Committers: 1
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Lars Willighagen l****n@g****m 23
Egon Willighagen e****n@g****m 9

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 3
  • Total pull requests: 0
  • Average time to close issues: 17 days
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 0.67
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • larsgw (2)
  • dpolivka-medicomp (1)
Pull Request Authors
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • npm 339 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 5
  • Total versions: 5
  • Total maintainers: 1
npmjs.org: @citation-js/plugin-pubmed

Citation.js plugin for PubMed and PubMed Central.

  • Versions: 5
  • Dependent Packages: 2
  • Dependent Repositories: 5
  • Downloads: 339 Last month
Rankings
Dependent repos count: 5.0%
Downloads: 7.5%
Dependent packages count: 8.9%
Average: 10.0%
Stargazers count: 13.2%
Forks count: 15.4%
Maintainers (1)
Last synced: 11 months ago

Dependencies

package.json npm
  • @babel/cli ^7.2.3 development
  • @babel/core ^7.2.2 development
  • @babel/eslint-parser ^7.14.3 development
  • @babel/preset-env ^7.2.3 development
  • @babel/register ^7.0.0 development
  • @citation-js/core ^0.5.1 development
  • babel-plugin-istanbul ^6.0.0 development
  • conventional-changelog-cli ^2.1.1 development
  • mocha ^8.4.0 development
  • nyc ^15.1.0 development
  • standard ^16.0.3 development
.github/workflows/build.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
  • codecov/codecov-action v1 composite