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

A package that converts any image to a straight image.

Notifications You must be signed in to change notification settings

AngeloCore/straightjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A package that converts any image to a straight image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published