UNPKG

@jonny/bibtex-parse-js

Version:

A JavaScript library that parses BibTeX to JSON

12 lines (9 loc) 274 B
var bibtexParse = require('bibtex-parse-js'); var sample = bibtexParse.toJSON('@article{sample1,title={sample title}}'); # Will conolse log: # # [ { citationKey: 'SAMPLE1', # entryType: 'ARTICLE', # entryTags: { TITLE: 'sample title' } } ] # console.log(sample);