You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
274 B
JavaScript

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);