0.7.14 • Published 6 months ago

@citation-js/core v0.7.14

Weekly downloads
4,684
License
MIT
Repository
github
Last release
6 months 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.13

7 months ago

0.7.14

6 months ago

0.7.11

8 months ago

0.7.9

10 months ago

0.7.6

11 months ago

0.6.9

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.8

2 years ago

0.6.5

2 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.7

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.5.0-alpha.10

4 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

6 years ago

0.4.3

6 years ago

0.4.3-alpha.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.4.0-rc.4

6 years ago

0.4.0-rc.3

6 years ago

0.4.0-rc.2

6 years ago

0.4.0-rc.1

6 years ago

0.4.0-rc.0

6 years ago