Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/bibtex-parser
A CommonJS port of BibTeX-js
https://github.com/mikolalysenko/bibtex-parser
Last synced: about 2 months ago
JSON representation
A CommonJS port of BibTeX-js
- Host: GitHub
- URL: https://github.com/mikolalysenko/bibtex-parser
- Owner: mikolalysenko
- License: mit
- Created: 2013-07-18T23:27:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-23T14:14:30.000Z (about 11 years ago)
- Last Synced: 2024-10-19T14:08:56.720Z (2 months ago)
- Language: JavaScript
- Size: 96.7 KB
- Stars: 23
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
bibtex-parser
=============
A pure JavaScript BibTeX parser. Based on the following implementation by Henrik Muehe:* https://code.google.com/p/bibtex-js/
## Example
```javascript
var bibliography = "@inproceedings{Lysenko:2010:GMC:1839778.1839781,\
author = {Lysenko, Mikola and Nelaturi, Saigopal and Shapiro, Vadim},\
title = {Group morphology with convolution algebras},\
booktitle = {Proceedings of the 14th ACM Symposium on Solid and Physical Modeling},\
series = {SPM '10},\
year = {2010},\
isbn = {978-1-60558-984-8},\
location = {Haifa, Israel},\
pages = {11--22},\
numpages = {12},\
url = {http://doi.acm.org/10.1145/1839778.1839781},\
doi = {10.1145/1839778.1839781},\
acmid = {1839781},\
publisher = {ACM},\
address = {New York, NY, USA},\
}"var parse = require("bibtex-parser")
console.log(parse(bibliography))
```## Install
npm install bibtex-parser
## API```javascript
var parse = require("bibtex-parser")
```### `parse(input)`
Parses a string as a bibtex file. The result is an object whose properties are the entries of the bibtex file, and whose values are objects with contents of the bibtex file.* `input` is a string representing a bibtex file
**Returns** A parsed bibtex file as a JSON object
## Credits
(c) 2010 Henrik Muehe. MIT LicenseCommonJS port maintained by Mikola Lysenko