1.0.2 • Published 2 years ago

straight.js v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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)! ❤️

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-dev-a1

2 years ago

0.1.0

9 years ago