Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Latest commit

 

History

History
54 lines (34 loc) · 898 Bytes

README.md

File metadata and controls

54 lines (34 loc) · 898 Bytes

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 or Buffer

Opacity (not required): number

Returns: Promise<Buffer>

Happy straight month (July)! ❤️