csl-consolidate
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.

API


consolidate()

Try to resolve a list of CSL data with crossref metadata

Signature

consolidate(data: Data[], options: object): Promise<undefined | Data[]>;

Parameters

Name Type
data Data[]
options object
options.mailto string

Returns

Promise<undefined | Data[]>

Defined in: lib/csl-consolidate.ts:12


dateSim()

Signature

dateSim(ref: Data, csl: Data): number;

Parameters

Name Type
ref Data
csl Data

Returns

number

Defined in: lib/csl-consolidate.ts:144

Install

This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as

pnpm add csl-consolidate
# or with yarn
[![npm version](https://badge.fury.io/js/csl-consolidate.svg)](https://badge.fury.io/js/csl-consolidate) [![npm downloads](https://img.shields.io/npm/dm/csl-consolidate.svg)](https://www.npmjs.com/package/csl-consolidate)
# yarn add csl-consolidate
# or with npm
# npm install csl-consolidate

citations-csl-consolidate

Small utility script which checks a list of CSL references against the Crossref doi. If possible it adds the missing DOIs and extra metadata provided by Crossref or the doi provider.

Package Sidebar

Install

npm i csl-consolidate

Weekly Downloads

2

Version

0.3.0

License

GPL-3.0-or-later

Unpacked Size

14.3 kB

Total Files

7

Last publish

Collaborators

  • tefkah