# bibtex-parse-js

> A JavaScript library that parses BibTeX to JSON

Latest version **0.0.24** (published 2017-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install bibtex-parse-js
pnpm add bibtex-parse-js
yarn add bibtex-parse-js
bun add bibtex-parse-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.24 |
| Published | 2017-09-12 |
| First published | 2013-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 113 |
| Author | rcpeters |
| Maintainers | rcpeters |
| Keywords | bibtex, json, javascript, parser |

## Links

- npm: https://www.npmjs.com/package/bibtex-parse-js
- Repository: https://github.com/ORCID/bibtexParseJs
- Homepage: https://github.com/ORCID/bibtexParseJs#readme
- Issues: https://github.com/ORCID/bibtexParseJs/issues
- npm.io page: https://npm.io/package/bibtex-parse-js

## Dependencies (2)

- [ava](https://npm.io/package/ava.md) ^0.15.2
- [xml2js](https://npm.io/package/xml2js.md) *

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.24 (latest) — 2017-09-12
- 0.0.23 — 2016-06-15
- 0.0.22 — 2015-06-24
- 0.0.20 — 2015-05-22
- 0.0.19 — 2014-12-29
- 0.0.18 — 2014-12-10
- 0.0.17 — 2014-12-09
- 0.0.16 — 2014-11-04
- 0.0.14 — 2014-08-29
- 0.0.13 — 2014-08-27
- 0.0.12 — 2014-07-11
- 0.0.11 — 2014-07-08
- 0.0.9 — 2014-06-03
- 0.0.7 — 2014-03-31
- 0.0.6 — 2014-03-31
- … 3 more at https://npm.io/package/bibtex-parse-js/versions

## README

bibtexParseJs
=============
A JavaScript library that parses BibTeX parser. Forked from 
[bibtex-parser](https://github.com/mikolalysenko/bibtex-parser).


## Using in Browser
Include bibtexParse.js and call 

```
bibtexParse.toJSON('@article{sample1,title={sample title}}');
```

## Using in [Node.js](http://nodejs.org/)
Install     ```npm install bibtex-parse-js```

```
var bibtexParse = require('bibtex-parse-js');

var sample = bibtexParse.toJSON('@article{sample1,title={sample title}}');

console.log(sample);
``` 

**Returns** A parsed bibtex file as a JSON Array Object

```
[ { citationKey: 'SAMPLE1',
    entryType: 'ARTICLE',
    entryTags: { TITLE: 'sample title' } } ]
```

## Contributing
   Contributions are welcome. Please make sure the unit test(test/runTest.js) reflects the
   changes and completes successfully. 

#### Travis CI
See the latest build and results at [https://travis-ci.org/ORCID/bibtexParseJs](https://travis-ci.org/ORCID/bibtexParseJs)

## Credits
(c) 2010 Henrik Muehe.  MIT License 
[visit](https://code.google.com/p/bibtex-js/)


CommonJS port maintained by Mikola Lysenko 
[visit](https://github.com/mikolalysenko/bibtex-parser)

---
_Source: https://npm.io/package/bibtex-parse-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
