All Projects → larsgw → Citation.js

larsgw / Citation.js

Licence: mit
Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Citation.js

scholia
Wikidata-based scholarly profiles
Stars: ✭ 166 (-2.92%)
Mutual labels:  bibtex, wikidata
Primarysources
Approve or reject statements from third-party datasets
Stars: ✭ 139 (-18.71%)
Mutual labels:  wikidata
Soweego
Link Wikidata items to large catalogs
Stars: ✭ 74 (-56.73%)
Mutual labels:  wikidata
Bibtool
BibTool is a tool for manipulating BibTeX data bases. BibTeX provides a mean to integrate citations into LaTeX documents. BibTool allows the manipulation of BibTeX files which goes beyond the possibilities -- and intentions -- of BibTeX.
Stars: ✭ 121 (-29.24%)
Mutual labels:  bibtex
Gscholar Bibtex
Retrieve BibTeX entries from Google Scholar, ACM Digital Library, IEEE Xplore and DBLP
Stars: ✭ 92 (-46.2%)
Mutual labels:  bibtex
Bibcure
Bibcure helps in boring tasks by keeping your bibfile up to date and normalized...also allows you to easily download all papers inside your bibtex
Stars: ✭ 124 (-27.49%)
Mutual labels:  bibtex
Mundaneum
A clojure wrapper around WikiData
Stars: ✭ 54 (-68.42%)
Mutual labels:  wikidata
Zotero Better Bibtex
Make Zotero effective for us LaTeX holdouts
Stars: ✭ 2,336 (+1266.08%)
Mutual labels:  bibtex
Wikidata Graph Builder
Visualize Wikidata items using d3.js
Stars: ✭ 137 (-19.88%)
Mutual labels:  wikidata
Bibtex Search
Search for BibTeX references
Stars: ✭ 121 (-29.24%)
Mutual labels:  bibtex
Scihub2pdf
Downloads pdfs via a DOI number, article title or a bibtex file, using the database of libgen(sci-hub) , arxiv
Stars: ✭ 120 (-29.82%)
Mutual labels:  bibtex
Django Publications
A Django app for managing scientific publications.
Stars: ✭ 95 (-44.44%)
Mutual labels:  bibtex
Hyte
EMNLP 2018: HyTE: Hyperplane-based Temporally aware Knowledge Graph Embedding
Stars: ✭ 130 (-23.98%)
Mutual labels:  wikidata
Vglist
A video game library tracking web app built in Rails and powered by Wikidata.
Stars: ✭ 78 (-54.39%)
Mutual labels:  wikidata
Benmaps.fr
Web maps that don't track you.
Stars: ✭ 147 (-14.04%)
Mutual labels:  wikidata
Openrefine
OpenRefine is a free, open source power tool for working with messy data and improving it
Stars: ✭ 8,531 (+4888.89%)
Mutual labels:  wikidata
Scholia
Wikidata scholarly profiles
Stars: ✭ 115 (-32.75%)
Mutual labels:  wikidata
Bib Publication List
Interactive publications lists with JavaScript + Bibtex
Stars: ✭ 122 (-28.65%)
Mutual labels:  bibtex
Hugo Academic Cli
📚 Import academic publications from Bibtex to Hugo
Stars: ✭ 158 (-7.6%)
Mutual labels:  bibtex
Wikibase Cli
read and edit a Wikibase instance from the command line
Stars: ✭ 148 (-13.45%)
Mutual labels:  wikidata

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.


SiteRepoGetting StartedDocumentationDemo


NPM version NPM total downloads Build Status JavaScript Style Guide Dependency Status codecov Maintainability Join the chat at https://gitter.im/citation-js/Lobby license DOI


Install

On Node.js, install the package (citation-js) like this:

npm install citation-js

To install the CLI as a global command, do this:

npm install --global citation-js

Browser releases are available here. These define require and add citation-js as a module.

<script src="path/to/citation.js" type="text/javascript"></script>
<script>
  const Cite = require('citation-js')
</script>

Getting Started

You can read a guide on how to get started, together with some tutorials and examples, here.

CLI

More info

Run the CLI like this:

citation-js  [options]

Options:

  -h, --help                      output usage information
  -V, --version                   output the version number
  
  -i, --input <path>              Input file
  -u, --url <url>                 Input url
  -t, --text <string>             Input text
  
  -o, --output <path>             Output file (omit file extension)
  
  -R, --output-non-real           Do not output the file in its mime type, but as a string
  -f, --output-type <option>      Output structure type: string, html, 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)
  -l, --output-language <option>  Output language. [RFC 5646](https://tools.ietf.org/html/rfc5646) codes

Cite

More info

To use the Cite constructor, require() the module like this:

const Cite = require('citation-js')

For example, to get the bibliographical data of the Wikidata item wd:Q21972834, and then format it in HTML, English and APA:

let example = new Cite('Q21972834')

let output = example.format('bibliography', {
  format: 'html',
  template: 'apa',
  lang: 'en-US'
})

console.log(output)

To test this code, go to RunKit.

Async

Use the async API (recommended for Wikidata, URL, and DOI input) like this:

let example = await Cite.async('Q21972834')

let output = example.format('bibliography', {
  format: 'html',
  template: 'apa',
  lang: 'en-US'
})

console.log(output)

Cite.async() also supports options as the second argument, and a callback function as last argument.

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!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].