@citation-js/cli

Core functionality of Citation.js, as well as the original plugins (CSL, BibTeX, RIS, DOI, Wikidata, and BibJSON)

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

Science Score: 67.0%

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

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.9%) to scientific vocabulary

Keywords

hacktoberfest
Last synced: 6 months ago · JSON representation ·

Repository

Core functionality of Citation.js, as well as the original plugins (CSL, BibTeX, RIS, DOI, Wikidata, and BibJSON)

Basic Info
  • Host: GitHub
  • Owner: citation-js
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Homepage: https://citation.js.org
  • Size: 6.2 MB
Statistics
  • Stars: 173
  • Watchers: 4
  • Forks: 44
  • Open Issues: 37
  • Releases: 0
Topics
hacktoberfest
Created about 7 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Citation

README.md

Citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and BibJSON to CSL-JSON to convert to other formats like APA, Vancouver, RIS and back to BibTeX.

Read the paper Citation.js: a format-independent, modular bibliography tool for the browser and command line. DOI 10.7717/peerj-cs.214


SiteRepoGetting StartedDocumentationDemo


NPM version NPM yearly downloads jsDelivr yearly hits Build Status License JavaScript Style Guide Join the chat at https://gitter.im/citation-js/Lobby DOI

Packages

| citation-js/citation-js | replaces | larsgw/citation.js | |---|---|---| | This repository contains the npm package @citation-js/core and several other components. || This repository contains the npm package citation-js that wraps the aforementioned components for backwards compatibility. |

Core

Core functionality:

  • Cite: reference manager
  • plugins: plugins manager
  • util: several utility functions and classes
  • version

Plugins

| Plugin | Description | |---|---| | plugin-bibjson | Plugin for BibJSON formats for Citation.js | | plugin-bibtex | Plugin for BibTeX formats for Citation.js | | plugin-csl | Plugin for CSL output for Citation.js | | plugin-doi | Plugin for DOI input for Citation.js | | plugin-ris | Plugin for RIS formats for Citation.js | | plugin-wikidata | Plugin for Wikidata for Citation.js |

Plugins in other repositories

| Plugin | Description | |---|---| | plugin-software-formats | Plugin for CFF, Zenodo JSON, input from GitHub and npm URLs | | plugin-isbn | Plugin for ISBNs (from Google Books, OpenLibrary) | | plugin-orcid | Plugin for ORCID profiles (metadata from DOIs and ISBNs) | | plugin-pubmed | Plugin for PubMed and PubMed Central identifiers | | plugin-quickstatements | Plugin for output to Wikidata QuickStatements | | plugin-zotero-translation-server | Plugin for Zotero JSON and interfacing with a Zotero translation server | | plugin-refer | Plugin for the refer file format | | plugin-refworks | Plugin for the RefWorks tagged format |

CLI

CLI:

Usage: citation-js [options]

Options:
  -V, --version                   output the version number
  -i, --input <path>              Input file. If all input options are omitted, it uses stdin
  -t, --text <string>             Input text. If all input options are omitted, it uses stdin
  -u, --url <string>              Deprecated in favor of -t, --text. If all input options are omitted, it uses stdin
  -o, --output <path>             Output file (omit file extension). If this option is omitted, the output is written to stdout
  -R, --output-non-real           Output as a text file
  -f, --output-type <option>      Output structure type: string, html, json (default: "json")
  -s, --output-style <option>     Output scheme. A combination of --output-format json and --output-style citation-* is considered invalid. Options: csl (Citation Style Lanugage JSON), bibtex, citation-* (where * is any formatting style) (default: "csl")
  -l, --output-language <option>  Output language. [RFC 5646](https://tools.ietf.org/html/rfc5646) codes (default: "en-US")
  -h, --help                      output usage information

Acknowledgements

JS.ORG

BrowserStack

  • Thanks to BrowserStack for the free Open Source plan, allowing me to automate testing browser support, and avoid issues like this one!

Owner

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

Citation (CITATION.cff)

cff-version: 1.2.0
message: Please cite the following works when using this software.
authors:
  - family-names: Willighagen
    given-names: Lars
    website: https://github.com/larsgw
  - family-names: Verborgh
    given-names: Ruben
    website: https://github.com/RubenVerborgh
  - family-names: Willighagen
    given-names: Egon
    website: https://github.com/egonw
  - family-names: Voß
    given-names: Jakob
    website: https://github.com/nichtich
  - family-names: Shaw
    given-names: Alex
    website: https://github.com/Symbitic
  - family-names: Wiernik
    given-names: Brenton M.
    website: https://github.com/bwiernik
  - family-names: Stein
    given-names: Gabriel
    website: https://github.com/gabestein
  - family-names: Riquelme
    given-names: Juan
    website: https://github.com/soulchainer
  - name: anadrome
    website: https://github.com/anadrome
  - family-names: Čermák
    given-names: Petr
    website: https://github.com/me2d09
date-released: 2024-03-27
identifiers:
  - type: url
    value: https://github.com/citation-js/citation-js
title: citation-js/citation-js
url: https://github.com/citation-js/citation-js
version: v0.7.10
preferred-citation:
  authors:
    - family-names: Willighagen
      given-names: Lars G.
  doi: 10.7717/peerj-cs.214
  identifiers:
    - type: doi
      value: 10.7717/peerj-cs.214
    - type: url
      value: http://dx.doi.org/10.7717/peerj-cs.214
    - type: other
      value: urn:issn:2376-5992
  title: >-
    Citation.js: a format-independent, modular bibliography tool for the
    browser and command line
  url: http://dx.doi.org/10.7717/peerj-cs.214
  database: Crossref
  date-published: 2019-08-12
  year: 2019
  month: 8
  issn: 2376-5992
  journal: PeerJ Computer Science
  languages:
    - en
  publisher:
    name: PeerJ
  start: e214
  type: article
  volume: 5

GitHub Events

Total
  • Issues event: 12
  • Watch event: 21
  • Issue comment event: 12
  • Push event: 6
  • Pull request event: 2
  • Fork event: 4
  • Create event: 6
Last Year
  • Issues event: 12
  • Watch event: 21
  • Issue comment event: 12
  • Push event: 6
  • Pull request event: 2
  • Fork event: 4
  • Create event: 6

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 635
  • Total Committers: 14
  • Avg Commits per committer: 45.357
  • Development Distribution Score (DDS): 0.038
Past Year
  • Commits: 86
  • Committers: 3
  • Avg Commits per committer: 28.667
  • Development Distribution Score (DDS): 0.023
Top Committers
Name Email Commits
Lars Willighagen l****n@g****m 611
Ruben Verborgh r****n@v****g 7
dependabot[bot] 4****]@u****m 3
Alexander Zeilmann a****n@g****m 2
Egon Willighagen e****n@g****m 2
Jakob Voß j****b@n****e 2
Mark J. Nelson m****n@a****g 1
Jeffrey Heer j****r@g****m 1
Alex a****s@g****m 1
Gabriel Stein g@g****m 1
Petr Čermák p****k@l****m 1
Juan Riquelme González me@j****e 1
Brenton M. Wiernik b****k@u****m 1
Anusha S a****s@t****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 120
  • Total pull requests: 30
  • Average time to close issues: 6 months
  • Average time to close pull requests: 18 days
  • Total issue authors: 55
  • Total pull request authors: 7
  • Average comments per issue: 2.44
  • Average comments per pull request: 1.77
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 22
Past Year
  • Issues: 9
  • Pull requests: 3
  • Average time to close issues: 19 days
  • Average time to close pull requests: N/A
  • Issue authors: 7
  • Pull request authors: 1
  • Average comments per issue: 1.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 3
Top Authors
Issue Authors
  • larsgw (40)
  • cclpeng (5)
  • AlexanderZeilmann (5)
  • crystalfp (4)
  • egonw (4)
  • fnielsen (3)
  • gabestein (2)
  • ech0-de (2)
  • himito (2)
  • retorquere (2)
  • bootsa (2)
  • Leon0402 (2)
  • AWehrhahn (2)
  • lightninglu10 (2)
  • MaxwellBo (2)
Pull Request Authors
  • dependabot[bot] (21)
  • larsgw (2)
  • AlexanderZeilmann (1)
  • St-ton (1)
  • georgecodedit (1)
  • jheer (1)
Top Labels
Issue Labels
type: bug (37) category: mapping (31) package: plugin-bibtex (30) package: plugin-csl (27) type: enhancement (21) category: api (19) package: core (18) package: plugin-wikidata (15) triage: question (11) breaking (10) package: plugin-doi (8) component: docs (8) package: plugin-ris (5) tag: help wanted (2) tag: good first issue (2) triage: invalid (1) package: plugin-bibjson (1) component: tests (1)
Pull Request Labels
component: dependencies (19) package: plugin-bibtex (3) category: mapping (3) type: enhancement (2) dependencies (2) javascript (2) package: core (1) package: plugin-csl (1) breaking (1)

Packages

  • Total packages: 9
  • Total downloads:
    • npm 374,402 last-month
  • Total docker downloads: 307,083
  • Total dependent packages: 76
    (may contain duplicates)
  • Total dependent repositories: 3,572
    (may contain duplicates)
  • Total versions: 423
  • Total maintainers: 1
npmjs.org: @citation-js/core

Convert different bibliographic metadata sources

  • Versions: 44
  • Dependent Packages: 31
  • Dependent Repositories: 682
  • Downloads: 77,913 Last month
  • Docker Downloads: 96,596
Rankings
Downloads: 0.6%
Dependent repos count: 0.7%
Docker downloads count: 0.8%
Dependent packages count: 0.9%
Average: 2.1%
Forks count: 4.5%
Stargazers count: 4.9%
Maintainers (1)
Last synced: about 1 year ago
npmjs.org: @citation-js/plugin-bibtex

Plugin for BibTeX formats for Citation.js

  • Versions: 54
  • Dependent Packages: 16
  • Dependent Repositories: 665
  • Downloads: 76,705 Last month
  • Docker Downloads: 96,596
Rankings
Downloads: 0.6%
Dependent repos count: 0.7%
Docker downloads count: 0.8%
Dependent packages count: 1.7%
Average: 2.2%
Forks count: 4.5%
Stargazers count: 4.9%
Maintainers (1)
Last synced: about 1 year ago
npmjs.org: @citation-js/plugin-csl

Plugin for CSL output for Citation.js

  • Versions: 51
  • Dependent Packages: 9
  • Dependent Repositories: 661
  • Downloads: 74,885 Last month
  • Docker Downloads: 96,596
Rankings
Downloads: 0.6%
Dependent repos count: 0.7%
Docker downloads count: 0.8%
Average: 2.3%
Dependent packages count: 2.4%
Forks count: 4.5%
Stargazers count: 4.9%
Maintainers (1)
Last synced: about 1 year ago
npmjs.org: @citation-js/plugin-doi

Plugin for DOI input for Citation.js

  • Versions: 49
  • Dependent Packages: 5
  • Dependent Repositories: 250
  • Downloads: 6,692 Last month
  • Docker Downloads: 3,459
Rankings
Downloads: 0.6%
Docker downloads count: 0.8%
Dependent repos count: 1.0%
Average: 2.6%
Dependent packages count: 3.6%
Forks count: 4.5%
Stargazers count: 4.9%
Maintainers (1)
Last synced: about 1 year ago
npmjs.org: @citation-js/plugin-bibjson

Plugin for BibJSON formats for Citation.js

  • Versions: 45
  • Dependent Packages: 5
  • Dependent Repositories: 591
  • Downloads: 60,858 Last month
  • Docker Downloads: 3,459
Rankings
Downloads: 0.6%
Dependent repos count: 0.7%
Docker downloads count: 0.8%
Average: 2.7%
Dependent packages count: 4.4%
Forks count: 4.5%
Stargazers count: 4.9%
Maintainers (1)
Last synced: about 1 year ago
npmjs.org: @citation-js/plugin-wikidata

Plugin for Wikidata for Citation.js

  • Versions: 53
  • Dependent Packages: 4
  • Dependent Repositories: 241
  • Downloads: 35,580 Last month
  • Docker Downloads: 3,459
Rankings
Downloads: 0.6%
Docker downloads count: 0.8%
Dependent repos count: 1.1%
Average: 2.7%
Dependent packages count: 4.4%
Forks count: 4.5%
Stargazers count: 4.9%
Maintainers (1)
Last synced: 8 months ago
npmjs.org: @citation-js/plugin-ris

Plugin for RIS formats for Citation.js

  • Versions: 51
  • Dependent Packages: 4
  • Dependent Repositories: 243
  • Downloads: 6,146 Last month
  • Docker Downloads: 3,459
Rankings
Downloads: 0.6%
Docker downloads count: 0.8%
Dependent repos count: 1.0%
Average: 2.9%
Forks count: 4.5%
Stargazers count: 4.9%
Dependent packages count: 5.8%
Maintainers (1)
Last synced: about 1 year ago
npmjs.org: @citation-js/cli

CLI for Citation.js

  • Versions: 67
  • Dependent Packages: 2
  • Dependent Repositories: 239
  • Downloads: 35,601 Last month
  • Docker Downloads: 3,459
Rankings
Downloads: 0.6%
Docker downloads count: 0.8%
Dependent repos count: 1.1%
Average: 3.4%
Forks count: 4.5%
Stargazers count: 4.9%
Dependent packages count: 8.8%
Maintainers (1)
Last synced: 8 months ago
npmjs.org: @citation-js/plugin-url

Citation.js plugin for automatically fetching URLs.

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 22 Last month
Rankings
Dependent repos count: 37.3%
Average: 45.4%
Dependent packages count: 53.5%
Maintainers (1)
Last synced: 7 months ago

Dependencies

.github/workflows/build.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
  • codecov/codecov-action v1 composite
package-lock.json npm
  • 1033 dependencies
package.json npm
  • @babel/cli ^7.12.1 development
  • @babel/core ^7.12.3 development
  • @babel/eslint-parser ^7.17.0 development
  • @babel/preset-env ^7.12.1 development
  • @babel/register ^7.12.1 development
  • babel-plugin-istanbul ^6.0.0 development
  • conventional-changelog-cli ^4.1.0 development
  • expect.js ^0.3.1 development
  • jsdoc ^4.0.0 development
  • lerna ^5.1.8 development
  • mocha ^10.0.0 development
  • mock-require ^3.0.3 development
  • node-fetch ^2.6.7 development
  • nyc ^15.1.0 development
  • standard ^17.0.0 development
  • wikidata-sdk ^8.0.0 development
packages/cli/package-lock.json npm
  • @citation-js/core 0.7.1
  • @citation-js/date 0.5.1
  • @citation-js/name 0.4.2
  • @citation-js/plugin-bibjson 0.7.2
  • @citation-js/plugin-bibtex 0.7.2
  • @citation-js/plugin-csl 0.7.2
  • @citation-js/plugin-doi 0.7.2
  • @citation-js/plugin-ris 0.7.4
  • @citation-js/plugin-wikidata 0.7.2
  • base64-js 1.5.1
  • buffer 5.7.1
  • citeproc 2.4.63
  • commander 11.1.0
  • fetch-ponyfill 7.1.0
  • ieee754 1.2.1
  • moo 0.5.2
  • node-fetch 2.6.13
  • sync-fetch 0.4.5
  • tr46 0.0.3
  • webidl-conversions 3.0.1
  • whatwg-url 5.0.0
  • wikibase-sdk 8.1.1
  • wikidata-sdk 8.1.1
packages/cli/package.json npm
  • @citation-js/core ^0.7.6
  • @citation-js/plugin-bibjson ^0.7.6
  • @citation-js/plugin-bibtex ^0.7.6
  • @citation-js/plugin-csl ^0.7.6
  • @citation-js/plugin-doi ^0.7.7
  • @citation-js/plugin-ris ^0.7.6
  • @citation-js/plugin-wikidata ^0.7.7
  • commander ^11.0.0
packages/core/package-lock.json npm
  • @citation-js/date 0.5.1
  • @citation-js/name 0.4.2
  • base64-js 1.5.1
  • buffer 5.7.1
  • fetch-ponyfill 7.1.0
  • ieee754 1.2.1
  • node-fetch 2.6.7
  • sync-fetch 0.4.5
  • tr46 0.0.3
  • webidl-conversions 3.0.1
  • whatwg-url 5.0.0
packages/core/package.json npm
  • @citation-js/date ^0.5.0
  • @citation-js/name ^0.4.2
  • fetch-ponyfill ^7.1.0
  • sync-fetch ^0.4.1
packages/plugin-bibjson/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.7 development
  • sync-fetch 0.4.1 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
  • @citation-js/date 0.5.1
  • @citation-js/name 0.4.2
packages/plugin-bibjson/package.json npm
  • @citation-js/core ^0.7.6 development
  • @citation-js/date ^0.5.0
  • @citation-js/name ^0.4.2
packages/plugin-bibtex/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.7 development
  • sync-fetch 0.4.1 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
  • @citation-js/date 0.5.1
  • @citation-js/name 0.4.2
  • moo 0.5.2
packages/plugin-bibtex/package.json npm
  • @citation-js/core ^0.7.6 development
  • @citation-js/date ^0.5.0
  • @citation-js/name ^0.4.2
  • moo ^0.5.1
packages/plugin-csl/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • @citation-js/name 0.4.2 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.7 development
  • sync-fetch 0.4.1 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
  • @citation-js/date 0.5.1
  • citeproc 2.4.63
packages/plugin-csl/package.json npm
  • @citation-js/core ^0.7.6 development
  • @citation-js/date ^0.5.0
  • citeproc ^2.4.6
packages/plugin-doi/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • @citation-js/name 0.4.2 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.7 development
  • sync-fetch 0.4.1 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
  • @citation-js/date 0.5.1
packages/plugin-doi/package.json npm
  • @citation-js/core ^0.7.6 development
  • @citation-js/date ^0.5.0
packages/plugin-ris/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.7 development
  • sync-fetch 0.4.1 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
  • @citation-js/date 0.5.1
  • @citation-js/name 0.4.2
packages/plugin-ris/package.json npm
  • @citation-js/core ^0.7.6 development
  • @citation-js/date ^0.5.0
  • @citation-js/name ^0.4.2
packages/plugin-url/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • @citation-js/date 0.5.1 development
  • @citation-js/name 0.4.2 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.13 development
  • sync-fetch 0.4.5 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
packages/plugin-url/package.json npm
  • @citation-js/core ^0.7.6 development
packages/plugin-wikidata/package-lock.json npm
  • @citation-js/core 0.7.1 development
  • base64-js 1.5.1 development
  • buffer 5.7.1 development
  • fetch-ponyfill 7.1.0 development
  • ieee754 1.2.1 development
  • node-fetch 2.6.7 development
  • sync-fetch 0.4.1 development
  • tr46 0.0.3 development
  • webidl-conversions 3.0.1 development
  • whatwg-url 5.0.0 development
  • @citation-js/date 0.5.1
  • @citation-js/name 0.4.2
  • wikibase-sdk 8.1.1
  • wikidata-sdk 8.1.1
packages/plugin-wikidata/package.json npm
  • @citation-js/core ^0.7.6 development
  • @citation-js/date ^0.5.0
  • @citation-js/name ^0.4.2
  • wikidata-sdk ^8.0.0