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: 5 months ago
JSON representation
🦀 Simple function to clamp numerical values.
- Host: GitHub
- URL: https://github.com/nevoland/clamp
- Owner: nevoland
- Created: 2024-10-15T08:04:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-01T12:19:19.000Z (11 months ago)
- Last Synced: 2025-10-05T14:17:38.602Z (9 months ago)
- Topics: between, clamp, comparison, greater, less, math, number, numeric, range, value
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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, isClamped } 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).