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-browser
# or with yarn
# yarn add ooxast-util-parse-bib-browser
# or with npm
# npm install ooxast-util-parse-bib-browser
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-browser.ts:12
object
{
param: string
}
Member | Type |
---|---|
param |
string |
Defined in: lib/ooxast-util-parse-bib-browser.ts:6
string
Defined in: lib/ooxast-util-parse-bib-browser.ts:5
object
{
header: string
}
Member | Type |
---|---|
header |
string |
Defined in: lib/ooxast-util-parse-bib-browser.ts:7
string
Defined in: lib/ooxast-util-parse-bib-browser.ts:8
boolean
Defined in: lib/ooxast-util-parse-bib-browser.ts:9
GPL-3.0-or-later © Thomas F. K. Jorna