Node.js library to create papers please citations.
Needs node.js version ^19.x.x
Installing with npm npm i --save @blockzilla101/citation
Installing with yarn yarn add @blockzilla101/citation
const{ Citation }=require('citation')constcitation=newCitation()// Optional: width and height can be set in the constructor too// new Citation(<width>, <height>)citation.reason='reason'citation.penalty='penalty'citation.title='title'citation.width=450citation.height=200citation.barcode=[1,0,1,1,0,0,0,1]// 0 = dont put a line, 1 = put a line; expands leftwards to fit the barcodecitation.resizeReason=true// whether to truncate the reason instead of expanding to fit itcitation.render('citation.png')// for a gifcitation.render('citation.gif',true)render() returns the rendered image or gif as a buffer.

