https://github.com/trialanderrororg/reoff-parse-references-browser
default(options: Options): Function;
https://github.com/trialanderrororg/reoff-parse-references-browser
abstract ast syntax tree unified
Last synced: 2 months ago
JSON representation
default(options: Options): Function;
- Host: GitHub
- URL: https://github.com/trialanderrororg/reoff-parse-references-browser
- Owner: TrialAndErrorOrg
- Created: 2023-02-28T21:57:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-27T20:52:38.000Z (about 3 years ago)
- Last Synced: 2025-01-01T04:52:46.559Z (over 1 year ago)
- Topics: abstract, ast, syntax, tree, unified
- Language: TypeScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
Awesome Lists containing this project
README
> **Note**
> This repository is automatically generated from the [main parser monorepo](https://github.com/TrialAndErrorOrg/parsers). Please submit any issues or pull requests there.
## API
***
### `default()`
#### Signature
```ts
default(options: Options): Function;
```
#### Parameters
| Name | Type |
| :------ | :------ |
| `options` | `Options` |
#### Returns
`Function`
##### `Signature`
```ts
(tree: Root, vfile: VFile): Promise;
```
##### `Parameters`
| Name | Type |
| :------ | :------ |
| `tree` | `Root` |
| `vfile` | `VFile` |
##### `Returns`
`Promise`<`Root`>
Defined in: [lib/reoff-parse-references.ts:5](https://github.com/TrialAndErrorOrg/parsers/blob/main/libs/reoff/reoff-parse-references-browser/src/lib/reoff-parse-references.ts#L5)
## Install
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
```bash
pnpm add reoff-parse-references-browser
# or with yarn
# yarn add reoff-parse-references-browser
# or with npm
# npm install reoff-parse-references-browser
```
# reoff-parse-references
Plugin for `reoff` which tries to find a bibliography in the document and parse it using `ooxast-util-parse-bib`.
## Running unit tests
Run `nx test reoff-reoff-parse-references` to execute the unit tests via [Jest](https://jestjs.io).