const straight = require("straight.js").default;
const fs = require("fs");
const converted = await straight.hetero("https://example.com/image.png");
fs.writeFileSync("./test.png", converted);
npm i straight.js --save
const straight = require("straight.js").default;
import straight from "straight.js";
hetero(image, ?opacity)
Image:
string
orBuffer
Opacity (not required):
number