# linterpol

> Linear interpolation

Latest version **1.0.0** (published 2018-11-24) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2018-11-24 |
| First published | 2018-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juergen Fitschen |
| Maintainers | jue89 |

## Links

- npm: https://www.npmjs.com/package/linterpol
- Repository: https://github.com/jue89/node-linterpol
- Homepage: https://github.com/jue89/node-linterpol#readme
- Issues: https://github.com/jue89/node-linterpol/issues
- npm.io page: https://npm.io/package/linterpol

## Recent versions

- 1.0.0 (latest) — 2018-11-24

## README

# Linterpol

Linear interpolation. No international criminal police organization.

## API

```js
const linterpol = require('linterpol');

const points = [
//	[ x,  y]
	[01, 16],
	[09, 16],
	[11, 18],
	[23, 18]
];

// Interpolate value within given points
linterpol(08, points) // == 16
linterpol(10, points) // == 17
linterpol(12, points) // == 18

// Interpolate without wrap around
linterpol(00, points) // == 16
linterpol(24, points) // == 18

// Interpolate with wrap around
linterpol(00, points, 24) // == 17
linterpol(24, points, 24) // == 17

```

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