unboundedpress/node_modules/bibtex-parse-js/SAMPLE.js
2019-07-23 04:28:47 +00:00

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