straight.js
v1.0.2
Published
A package that converts any image to a straight image
Downloads
9
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 --save
Importing
const straight = require("straight.js").default;
TypeScript/ES
import straight from "straight.js";
Methods
hetero(image, ?opacity)
Image:
string
orBuffer
Opacity (not required):
number