Citation.js nosort + custom sort

node v10.24.1
version: 1.0.0
endpointsharetweet
const Cite = require('citation-js@0.5.0-alpha.5') var bibSource = '@article{de2012modelling,\ title={First paper},\ author={De Vos, Connie and Roberts, Sean G and Thompson, Bill},\ journal={Journal of Language Evolution},\ year={2012}\ }\ \ @article{tamariz2014generation,\ title={Second paper},\ author={Tamariz, M and Cornish, H and Roberts, S and Kirby, S},\ journal={A journal},\ pages={555--556},\ year={2014}\ }\ \ @article{everett2016response,\ title={Third Paper},\ author={Everett, Caleb and Roberts, Sean},\ journal={Journal of Language Evolution},\ volume={1},\ number={1},\ pages={83--87},\ year={2016},\ }'; const cite = new Cite() cite.set(bibSource) cite.data.map(entry => entry.issued)
cite.get({format:"string",type:"html",style:"citation-apa",nosort:true});
cite.format('bibliography', { format: 'html', template: 'apa', nosort: true })
Loading…

no comments

    sign in to comment