jast-util-from-csl
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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
# 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.

Package Sidebar

Install

npm i jast-util-from-csl

Weekly Downloads

3

Version

0.1.1

License

GPL-3.0-or-later

Unpacked Size

12.4 kB

Total Files

7

Last publish

Collaborators

  • tefkah