jsonhtmlfyer
v0.3.3
Published
JSON TO HTML
Downloads
15
Readme
jsonhtmlfyer
JSON TO HTML. Will be used in Nertivia (nertivia.tk) for html embeds for bots.
Install
npm i jsonhtmlfyer
Note: If youre using this in the server (no renderer), install this aswell:
npm i jsdom
Usage
const { jsonToHtml } = require("jsonhtmlfyer");
const res = jsonToHtml({
tag: "div",
styles: {
backgroundImage: "google.com/owo.png",
},
}, "IMAGEPROXY.com/")
console.log(res)Will output:
<div style="background-image: url(IMAGEPROXY.com/google.com/owo.png);"></div>