@ryvora/number
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@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 === 10

Keep your numbers in check and your logic clean! ✨

Installation

pnpm add @ryvora/number

License

MIT

Package Sidebar

Install

npm i @ryvora/number

Weekly Downloads

28

Version

2.0.0

License

MIT

Unpacked Size

5.38 kB

Total Files

9

Last publish

Collaborators

  • xjectro