@dataset.sh/bibtex-parser
v0.0.1
Published
A BibTeX parser for JavaScript/TypeScript.
Downloads
9
Readme
@dataset.sh/bibtex-parser
A BibTeX parser for JavaScript/TypeScript.
Installation
yarn add @dataset.sh/bibtex-parser
# or
npm install @dataset.sh/bibtex-parserUsage
import { parseBibtex } from '@dataset.sh/bibtex-parser';
const bibtex = `@article{doe2021fast,
title={A Fast Algorithm},
author={Doe, John and Smith, Jane},
year={2021},
journal={Journal of Fast Algorithms},
volume={42},
number={7},
pages={123-134}
}`;
const entries = parseBibtex(bibtex);
console.log(entries);Development
- Build:
yarn build - Test:
yarn test
License
MIT
