Citation.js

Citation.js

Citation.js (GitHub, NPM) converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.

Features

  • Conversion from: Wikidata, Wikidata IDs, BibTeX, Bib.TXT and BibJSON
  • Conversion to: CSL-JSON, BibTeX, Bib.TXT, and formatted citations
  • Extensive sorting (more coming soon!)
  • Version control
  • Support for Node.js, browser, and has a CLI
  • MIT licensed
itation.js

Related projects

  • citation.js-form (formerly known as jquery.citation.js), a tool to make a webform for a more human-friendly use of citation.js.
  • citation.js-showdown , an extension to the Showdown markdown parser.
  • citation.js-replacer , a simple HTML API for Citation.js, to use citation.js to format citations on your page as easy as possible.

Demo

const Cite = require('citation-js@0.3.0-6')

const data = await Cite.async('Q21972834', {
  format: 'string',
  type: 'html',
  style: 'citation-apa',
  lang: 'en-US'
})

data.get() // Should implicitly display