# robust-compress

> Compress a robust sequence

Latest version **1.0.0** (published 2014-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install robust-compress
pnpm add robust-compress
yarn add robust-compress
bun add robust-compress
```

## 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 | 2014-05-06 |
| First published | 2014-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | robust, predicate, floating, point, normalize, compress |

## Links

- npm: https://www.npmjs.com/package/robust-compress
- Repository: https://github.com/mikolalysenko/robust-compress
- Issues: https://github.com/mikolalysenko/robust-compress/issues
- npm.io page: https://npm.io/package/robust-compress

## 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) — 2014-05-06

## README

robust-compress
===============
Quickly compress a non-overlapping increasing sequence.  This does not normalize the sequence, but can be useful in some situations.  Based on the algorithm in:

Jonathan Shewchuk, ["Adaptive precision floating-point arithmetic and fast robust predicates for computational geometry"](http://www.cs.cmu.edu/~quake/robust.html)

# Example

```javascript
var compress = require("robust-compress")

var seq = [1, 2]

compress(seq)

console.log(seq)
```

Output:

```javascript
[ 3 ]
```

# Install

```
npm install robust-compress
```

# API

#### `require("robust-compress")(seq)`
Approximately compress a non-overlapping increasing floating point expansion in place.

* `seq` is a robust sequence

**Returns** `seq`

**Note** This method updates `seq` in place

# Credits
(c) 2014 Mikola Lysenko.  MIT License

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