Skip to content

Transform a CSL list or object to a [jast][jast] node.

Notifications You must be signed in to change notification settings

TrialAndErrorOrg/jast-util-from-csl

Repository files navigation

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

API


cslToFront()

Signature

cslToFront(data: Data): void;

Parameters

Name Type
data Data

Returns

void

Defined in: lib/csl-to-jast.ts:27


cslToJats()

Signature

cslToJats(data: Data | Data[]): void | RefList;

Parameters

Name Type
data Data

Returns

void | RefList

Defined in: lib/csl-to-jast.ts:19


cslToRef()

Signature

cslToRef(data: Data, index: string | number): Ref;

Parameters

Name Type
data Data
index string

Returns

Ref

Defined in: lib/csl-to-jast.ts:44


cslToRefList()

Signature

cslToRefList(data: Data[] | {

}): RefList;

Parameters

Name Type
data Data[]

Returns

RefList

Defined in: lib/csl-to-jast.ts:31

Install

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

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

csl-util-to-jast

Transform a CSL list or object to a [jast][jast] node.