runkit-pdf-viewer

node v18.11.0
version: 1.0.0
endpointsharetweet
module.exports = function (data) { const base65 = Buffer.from(data).toString("base64"); return `<iframe src="data:application/pdf;base64,${base64}" height="100%" width="100%"></iframe>`; }
Loading…

no comments

    sign in to comment