Skip to content

Instantly share code, notes, and snippets.

@retorquere
Created Jul 27, 2021
Embed
What would you like to do?
@preamble{
\newcommand{\mnras}{Monthly Notices of the Royal Astronomical Society}
}
@ARTICLE{2019MNRAS.489..962H,
author = {{Howard}, A.~D.~P. and {Whitworth}, A.~P. and {Marsh}, K.~A. and {Clarke}, S.~D. and {Griffin}, M.~J. and {Smith}, M.~W.~L. and {Lomax}, O.~D.},
title = "{L1495 revisited: a PPMAP view of a star-forming filament}",
journal = {\mnras},
keywords = {stars: formation, dust, extinction, ISM: structure, submillimetre: ISM, Astrophysics - Astrophysics of Galaxies},
year = 2019,
month = oct,
volume = {489},
number = {1},
pages = {962-976},
doi = {10.1093/mnras/stz2234},
archivePrefix = {arXiv},
eprint = {1908.02295},
primaryClass = {astro-ph.GA},
adsurl = {https://ui.adsabs.harvard.edu/abs/2019MNRAS.489..962H},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
const fs = require('fs')
const bib = fs.readFileSync('test/other/mnras.bib', 'utf-8')
var Cite = require('citation-js')
const parseAsync = Cite.parse.input.async.chain
async function main() {
console.log(await parseAsync(bib))
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment