jast-util-from-csl
v0.1.1
Published
Transform a CSL list or object to a [jast][jast] node.
Downloads
22
Readme
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
| 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
| number
|
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.