Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
Find and convert raw references to CSL-JSON.
Takes a bibliography array (usually of w:p
s) and parses it using anystyle
to CSL.
You need to either: set up an anystyle API on your own (very easy to do, just click the "Deploy to vercel" button below for a version identical to the one used in this repo) or provide the path to the anystyle
executable.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add ooxast-util-parse-bib-node
# or with yarn
# yarn add ooxast-util-parse-bib-node
# or with npm
# npm install ooxast-util-parse-bib-node
parseBib(tree: OoxastTree, options:{
apiUrl?: string,
apiParams?: {param:string}[],
anyStylePath?: string
})
If no options are provided it will try to use Anystyle on your path, and probably fail.
parseBib(tree: Node<Data>, options: Options): Promise<undefined | Data[]>;
Name | Type |
---|---|
tree |
Node <Data > |
options |
Options |
Promise
<undefined
| Data
[]>
Defined in: lib/ooxast-util-parse-bib.ts:13
string
Defined in: lib/ooxast-util-parse-bib.ts:8
object
{
param: string
}
Member | Type |
---|---|
param |
string |
Defined in: lib/ooxast-util-parse-bib.ts:6
string
Defined in: lib/ooxast-util-parse-bib.ts:5
object
{
header: string
}
Member | Type |
---|---|
header |
string |
Defined in: lib/ooxast-util-parse-bib.ts:7
string
Defined in: lib/ooxast-util-parse-bib.ts:9
boolean
Defined in: lib/ooxast-util-parse-bib.ts:10
GPL-3.0-or-later © Thomas F. K. Jorna