A JavaScript library that parses BibTeX parser. Forked from bibtex-parser.
Include bibtexParse.js and call
bibtexParse.toJSON('@article{sample1,title={sample title}}');
Using in Node.js
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' } } ]
Contributions are welcome. Please make sure the unit test(test/runTest.js) reflects the changes and completes successfully.
(c) 2010 Henrik Muehe. MIT License visit
CommonJS port maintained by Mikola Lysenko visit