# maloha

> squoosh wrapper

Latest version **0.2.0** (published 2021-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install maloha
pnpm add maloha
yarn add maloha
bun add maloha
```

Provides the command `maloha`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2021-09-19 |
| First published | 2021-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 5 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Felix Restorff @xrestorff |
| Maintainers | xrestorff |
| Keywords | oclif |

## Links

- npm: https://www.npmjs.com/package/maloha
- Repository: https://github.com/xrestorff/maloha
- Issues: https://github.com/xrestorff/maloha/issues
- npm.io page: https://npm.io/package/maloha

## Dependencies (5)

- [tslib](https://npm.io/package/tslib.md) ^1.14.1
- [@squoosh/lib](https://npm.io/package/@squoosh/lib.md) ^0.4.0
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1.17.0
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1.8.0
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^3.2.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2021-09-19
- 0.1.1 — 2021-09-19
- 0.1.0 — 2021-09-11
- 0.0.0 — 2021-09-11

## README

# maloha

Simple wrapper around [squoosh](https://github.com/GoogleChromeLabs/squoosh) to compress images down to a specific target size.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/maloha.svg)](https://npmjs.org/package/maloha)
[![Downloads/week](https://img.shields.io/npm/dw/maloha.svg)](https://npmjs.org/package/maloha)
[![License](https://img.shields.io/npm/l/maloha.svg)](https://github.com/xrestorff/maloha/blob/master/package.json)

# Usage

```sh-session
$ npm install -g maloha
$ maloha --help
convert and optionally compress and resize images

USAGE
  $ maloha [FOLDER]

OPTIONS
  -f, --format=(jpg|webp)  [default: jpg] output format
  -h, --help               show CLI help
  -s, --size=size          target size in kb
  -v, --version            show CLI version
  -w, --width=width        maximum width in pixels
```

If no folder argument is provided, the current working directory will be used.  
Converts all image files in the chosen output format and saves them in a new folder.  
If a size argument is provided, the images will be compressed to that size  
while keeping the quality as high as possible.  
The width argument can be used to additionally resize all images with a width above  
the given value while maintaining the aspect ratio.

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