https://github.com/trialanderrororg/reoff-parse-references
default(options: Options = {}): Function;
https://github.com/trialanderrororg/reoff-parse-references
abstract ast syntax tree unified
Last synced: 3 months ago
JSON representation
default(options: Options = {}): Function;
- Host: GitHub
- URL: https://github.com/trialanderrororg/reoff-parse-references
- Owner: TrialAndErrorOrg
- Created: 2023-02-28T21:57:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T18:53:34.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T17:46:29.922Z (over 1 year ago)
- Topics: abstract, ast, syntax, tree, unified
- Language: TypeScript
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.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/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
# or with yarn
[](https://badge.fury.io/js/reoff-parse-references) [](https://www.npmjs.com/package/reoff-parse-references)
# yarn add reoff-parse-references
# or with npm
# npm install reoff-parse-references
```
# 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).