Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@retorquere
Created July 27, 2021 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retorquere/5e7d762c0980cd787a8ca85dac87ac58 to your computer and use it in GitHub Desktop.
Save retorquere/5e7d762c0980cd787a8ca85dac87ac58 to your computer and use it in GitHub Desktop.
@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