# @whizzes/mince

> Mince comes from "mincing" which means taking something that is roughly chopped and then chopping it finely

Latest version **0.0.8** (published 2023-05-28) · 0 weekly downloads

## Install

```sh
npm install @whizzes/mince
pnpm add @whizzes/mince
yarn add @whizzes/mince
bun add @whizzes/mince
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2023-05-28 |
| First published | 2023-05-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | estebanborai |

## Links

- npm: https://www.npmjs.com/package/@whizzes/mince
- npm.io page: https://npm.io/package/@whizzes/mince

## Recent versions

- 0.0.8 (latest) — 2023-05-28
- 0.0.7 — 2023-05-27
- 0.0.6 — 2023-05-25
- 0.0.5 — 2023-05-21
- 0.0.4 — 2023-05-21
- 0.0.3 — 2023-05-21
- 0.0.2 — 2023-05-21
- 0.0.1 — 2023-05-21

## README

# mince
Mince comes from "mincing" which means taking something that is roughly chopped and then chopping it finely

> **Warning** This package is under heavy development

## Usage

1. Install package

```bash
npm install @whizzes/mince
```

2. Initialize WASM Module

```ts
import init from "@whizzes/mince";
```

3. Then use the `Mince` class

```ts
import { Mince } from "@whizzes/mince";

const resizeImage = (file: File): Promise<File> => {
    const mince: Mince = await Mince.fromFile(file);
    const resized: Mince = mince.resize(100, 100);
    const file: File = resized.toFile();

    // The resulting file is an instance of the Browser's native `File` object
    const url = URL.createObjectURL(file);

    document.getElementById('image').src = url;

    return file;
}
```

## Development

1. Install `wasm-pack`

```bash
cargo install wasm-pack
```

## Geckodriver

https://github.com/rustwasm/wasm-pack/blob/master/src/test/webdriver/geckodriver.rs

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