Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nevoland/clamp

🦀 Simple function to clamp numerical values.
https://github.com/nevoland/clamp

between clamp comparison greater less math number numeric range value

Last synced: 29 days ago
JSON representation

🦀 Simple function to clamp numerical values.

Awesome Lists containing this project

README

        

# Clamp

🦀 Simple function to clamp numerical values.

## Usage

The main function is default exported from the main entry-point through an ES6 module:

```js
import { clamp } from "@nevoland/clamp";
```

## Installation

Install with the [Node Package Manager](https://www.npmjs.com/@nevoland/clamp):

```bash
npm install @nevoland/clamp
```

## Documentation

Documentation is generated [here](doc/README.md).