# rembg-nodejs

> Installation

Latest version **1.0.9** (published 2021-12-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install rembg-nodejs
pnpm add rembg-nodejs
yarn add rembg-nodejs
bun add rembg-nodejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2021-12-27 |
| First published | 2021-12-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chicken.alesha |
| Maintainers | chicken.alesha |
| Keywords | rembg-node, bg remove, node-bg |

## Links

- npm: https://www.npmjs.com/package/rembg-nodejs
- npm.io page: https://npm.io/package/rembg-nodejs

## Dependencies (1)

- [child_process](https://npm.io/package/child_process.md) ^1.0.2

## Recent versions

- 1.0.9 (latest) — 2021-12-27
- 1.0.8 — 2021-12-26
- 1.0.7 — 2021-12-25
- 1.0.6 — 2021-12-25
- 1.0.5 — 2021-12-25

## README

Installation

- install python
- install pytorch
- install rembg tool 
- install node js
- npm i rembg-nodejs

how to use ?

 	const {folder, file, link} = require('rembg-nodejs');

	async function run () {
		// if you want to convert image file
		await file('./output','./input.jpeg', (res) => console.log(res));

		// convert images in folder
		await folder('./output_folder','./input_folder', (res) => console.log(res));
		
		// convert from url
		await link('http://example/image.jpg','./output.png', (res) => console.log(res));
	}

	run();

---
_Source: https://npm.io/package/rembg-nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
