CSL-JS
Lightweight CSL Engine. WIP.
Table of Contents
Get Started
NPM install:
npm i csl-js
Browser not supported yet
Use: (API usage below)
const Formatter locales styles =
API
Registering/parsing locales & styles
const style = await await textstyles const style = await await textlocales
Formatter
Create:
const formatter = style: '...' lang: '...' format: '...'
Format: (data in CSL-JSON format)
formatter// (1957). Correlation of the Base Strengths of Amines 1 () []. Journal of the American Chemical Society, 79(20), 5441-5444. https://doi.org/10.1021/ja01577a030 formatter// (1957)
Features
cs:text
,cs:number
,cs:label
,cs:choose
,cs:group
,cs:date
,cs:layout
,cs:macros
- locales
- formatting, affixes, delimiter, strip-periods (mostly, anyway)
- bibliography
Missing spec features
- names
- disambiguation
- date ranges, BC
- better number handling
cs:citation
- sorting
- reference manager
- term genders
- jsdoc and documentation & examples
- test suite