# smaz

> Compression for very small strings

Latest version **1.0.0** (published 2012-04-16) · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2012-04-16 |
| First published | 2012-04-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.x < 0.7.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51 |
| Author | Salvatore Sanfilippo |
| Maintainers | mekwall |
| Keywords | strings, compression, decompression |

## Links

- npm: https://www.npmjs.com/package/smaz
- Repository: https://github.com/personalcomputer/smaz.js
- Issues: http://github.com/personalcomputer/smaz.js/issues/
- npm.io page: https://npm.io/package/smaz

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2012-04-16

## README

SMAZ.js
-------

See http://github.com/antirez/smaz for information on smaz and the algorithm itself.

**Live Demo:** http://personalcomputer.github.com/smaz.js/

## Usage

### In browser:

```javascript
var c = smaz.compress("string");
var u = smaz.decompress(c);
```

### In node.js:

#### Installation

```bash
$ npm install smaz
```

#### How to use

```
var smaz = require("smaz");
var c = smaz.compress("string");
var u = smaz.decompress(c);
```

Compressed binary data is stored using JavaScript ArrayBuffers.

CREDITS AND LICENSE
-------------------

Small was written by Salvatore Sanfilippo and is released under the BSD license. Check the COPYING file for more information. smaz.js was written by personalcomputer and is a derivative work also under the BSD license.

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