Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nevoland/clamp
- Owner: nevoland
- Created: 2024-10-15T08:04:55.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-15T13:01:20.000Z (about 1 month ago)
- Last Synced: 2024-10-17T05:50:25.337Z (30 days ago)
- Topics: between, clamp, comparison, greater, less, math, number, numeric, range, value
- Language: JavaScript
- Homepage:
- Size: 15.6 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 } 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).