open-index/open-npm huggingface dataset:
npm package: @iro/tiny
Description: # 编译 ```bash wasm-pack build ```
Latest version: 1.0.0

### PNGQUANT

# 编译
```bash
wasm-pack build
```

# 测试
```bash
# build 后进入 pkg 目录
pnpm link --global

# 进入前端项目
pnpm link --global pngquant
```

## 前端项目引入
```js
import * as pngquant from 'pngquant'

const reader = new FileReader()
const file = // 带压缩图片文件
reader.readAsArrayBuffer(file)
reader.onload = () => {
  const f = new Blob([pngquant.deflate(new Uint8Array(reader.result as ArrayBuffer))], {type: 'image/png'})
  console.log(URL.createObjectURL(f))
}
```
npm package: @iro/toast
Description: A toast component implemented based on Svelte.
Latest version: 1.0.4

# Toast
A toast component implemented based on Svelte.

[DEMO](https://toast-alpha.vercel.app)

## Usage

### install
```bash
pnpm i @iro/toast
```

### svelte
```ts
import {Toast, toast} from '@iro/toast'

// +page.svelte
<button on:click={() => toast.show('Wow!!!')}>toast</button>

// +layout.svelte
<Toast/>
<Toast --color="white" --background-color="green" --icon-size="20px" auto={false}/>
<Toast --color="white" --background-color="green" --icon-size="20px" closeable={false} --icon-color="yellow"/>
```