# @citation-js/core

> Convert different bibliographic metadata sources

Latest version **0.9.0** (published 2026-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @citation-js/core
pnpm add @citation-js/core
yarn add @citation-js/core
bun add @citation-js/core
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2026-09-18 |
| First published | 2018-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 3 |
| Unpacked size | 156.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 215 |
| Author | Lars Willighagen |
| Maintainers | larsgw |
| Keywords | citation-js, citation, bibliography |

## Links

- npm: https://www.npmjs.com/package/@citation-js/core
- Repository: https://github.com/citation-js/citation-js
- Homepage: https://citation.js.org/
- Issues: https://github.com/citation-js/citation-js/issues
- npm.io page: https://npm.io/package/@citation-js/core

## Dependencies (3)

- [@citation-js/date](https://npm.io/package/@citation-js/date.md) ^0.5.0
- [@citation-js/name](https://npm.io/package/@citation-js/name.md) ^0.4.2
- [sync-fetch-undici](https://npm.io/package/sync-fetch-undici.md) ^0.7.1

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.9.0 (latest) — 2026-09-18
- 0.8.2 — 2026-07-13
- 0.8.1 — 2026-07-05
- 0.8.0 — 2026-07-05
- 0.7.21 — 2025-10-20
- 0.7.18 — 2025-01-28
- 0.7.14 — 2024-06-12
- 0.7.13 — 2024-06-06
- 0.7.11 — 2024-04-17
- 0.7.9 — 2024-03-05
- 0.7.6 — 2024-01-17
- 0.7.1 — 2023-09-23
- 0.7.0 — 2023-09-23
- 0.6.9 — 2023-09-20
- 0.6.8 — 2023-05-10
- … 34 more at https://npm.io/package/@citation-js/core/versions

## README

# @citation-js/core
Convert different bibliographic metadata sources.

[![NPM version](https://img.shields.io/npm/v/@citation-js/core.svg)](https://npmjs.org/package/@citation-js/core)
[![NPM total downloads](https://img.shields.io/npm/dt/@citation-js/core.svg)](https://npmcharts.com/compare/@citation-js%2Fcore?minimal=true)
![License](https://img.shields.io/npm/l/@citation-js/core.svg)
![Dependency status](https://img.shields.io/librariesio/release/npm/@citation-js/core)
---

## 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](https://citation.js.org/api/tutorial-getting_started.html).

### `Cite`

> [More info](https://citation.js.org/api/tutorial-cite_.html)

To use the [`Cite`](#cite) constructor, `require()` the module like this:

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

For example, to get the bibliographical data of the Wikidata item [`wd:Q21972834`](https://wikidata.org/wiki/Q21972834), and then format it in HTML, English and APA:

```js
let example = new Cite('Q21972834')

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

console.log(output)
```

To test this code, go to [RunKit](https://runkit.com/larsgw/591b5651bd9b40001113931c).

### Async

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

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

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

console.log(output)
```

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

---
_Source: https://npm.io/package/@citation-js/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
