0.1.0-1 • Published 5 years ago

bibtex2json v0.1.0-1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

bibtex2json

A JavaScript library that parses BibTeX parser. Forked from ORCID/bibtexParseJs.

Using in Browser

Include bibtex2json.js and call

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

Using in Node.js

Install npm install bibtex2json

var bibtexParse = require('bibtex2json');

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

Credits

(c) 2010 Henrik Muehe. MIT License visit

CommonJS port maintained by Mikola Lysenko visit

0.1.0-1

5 years ago

0.1.0

5 years ago