https://github.com/citation-js/plugin-pubmed
Citation.js plugin for PubMed and PubMed Central identifiers
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
Repository
Citation.js plugin for PubMed and PubMed Central identifiers
Basic Info
- Host: GitHub
- Owner: citation-js
- License: mit
- Language: JavaScript
- Default Branch: main
- Homepage: https://www.npmjs.com/package/@citation-js/plugin-pubmed
- Size: 18.6 KB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
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
- Website: https://citation.js.org
- Twitter: citation_js
- Repositories: 24
- Profile: https://github.com/citation-js
GitHub Events
Total
Last Year
Committers
Last synced: about 3 years ago
Top Committers
| Name | 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
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.
- Homepage: https://github.com/citation-js/plugin-pubmed#readme
- License: MIT
-
Latest release: 0.3.0
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- @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
- actions/checkout v2 composite
- actions/setup-node v1 composite
- codecov/codecov-action v1 composite