@ryvora/number
v2.0.0
Published
A collection of number utilities for JavaScript/TypeScript.
Maintainers
Readme
@ryvora/number 🔢
Hello Number Cruncher! 🧮
The @ryvora/number package provides handy utilities for working with numbers in JavaScript/TypeScript. Perfect for math helpers, value clamping, and more.
It's like having a math assistant for your code!
Why would you need this?
- Clamp values within a range
- Build UI components that need numeric constraints
- Simplify math operations in your codebase
How it Works (Typically):
It provides a clamp function to restrict a number within a given range.
Basic Usage
import { clamp } from '@ryvora/number';
const value = clamp(15, [0, 10]); // value === 10Keep your numbers in check and your logic clean! ✨
Installation
pnpm add @ryvora/numberLicense
MIT
