straight.js
v1.0.2
Published
A package that converts any image to a straight image
Maintainers
Readme
Straight Javascript
Convert any image to straight image
Example
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);Result
Installation
npm i straight.js --saveImporting
const straight = require("straight.js").default;TypeScript/ES
import straight from "straight.js";Methods
hetero(image, ?opacity)
Image:
stringorBufferOpacity (not required):
number
