0.7.11 • Published 15 days ago

@citation-js/core v0.7.11

Weekly downloads
4,684
License
MIT
Repository
github
Last release
15 days ago

@citation-js/core

Convert different bibliographic metadata sources.

NPM version NPM total downloads License

Dependency status

Install

npm install @citation-js/core

Usage

Getting Started

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

Cite

More info

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

const {Cite} = require('@citation-js/core')

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.

0.7.11

15 days ago

0.7.9

2 months ago

0.7.6

4 months ago

0.6.9

7 months ago

0.7.1

7 months ago

0.7.0

7 months ago

0.6.8

12 months ago

0.6.5

1 year ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.7

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.5.0-alpha.10

3 years ago

0.5.0-alpha.9

4 years ago

0.5.0-alpha.7

4 years ago

0.5.0-alpha.6

4 years ago

0.5.0-alpha.5

5 years ago

0.5.0-alpha.4

5 years ago

0.5.0-alpha.3

5 years ago

0.5.0-alpha.2

5 years ago

0.5.0-alpha.1

5 years ago

0.5.0-alpha.0

5 years ago

0.4.9

5 years ago

0.4.8

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.3

5 years ago

0.4.3-alpha.0

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.4.0-rc.4

5 years ago

0.4.0-rc.3

5 years ago

0.4.0-rc.2

5 years ago

0.4.0-rc.1

5 years ago

0.4.0-rc.0

5 years ago