Skip to main content
Home

Built and signed on GitHub Actions

A collection of utility functions

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
a year ago (0.2.2)
namespace number

Functions

f
number.average
No documentation available
f
number.clamp
No documentation available
f
number.factorial
No documentation available
f
number.fibonacci
No documentation available
f
number.getDivisors
No documentation available
f
number.getPrimeFactors
No documentation available
f
number.inRange
No documentation available
f
number.isEven
No documentation available
f
number.isNegative
No documentation available
f
number.isOdd
No documentation available
f
number.isPerfect
No documentation available
f
number.isPositive
No documentation available
f
number.isPrime
No documentation available
f
number.isZero
No documentation available
f
number.max
No documentation available
f
number.median
No documentation available
f
number.min
No documentation available
f
number.mod
No documentation available
f
number.random
No documentation available
f
number.randomInt
No documentation available
f
number.sum
No documentation available
f
number.toOrdinal
No documentation available
f
number.toWords
No documentation available

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@modules/utils

Import symbol

import { number } from "@modules/utils";
or

Import directly with a jsr specifier

import { number } from "jsr:@modules/utils";

Add Package

pnpm i jsr:@modules/utils
or (using pnpm 10.8 or older)
pnpm dlx jsr add @modules/utils

Import symbol

import { number } from "@modules/utils";

Add Package

yarn add jsr:@modules/utils
or (using Yarn 4.8 or older)
yarn dlx jsr add @modules/utils

Import symbol

import { number } from "@modules/utils";

Add Package

vlt install jsr:@modules/utils

Import symbol

import { number } from "@modules/utils";

Add Package

npx jsr add @modules/utils

Import symbol

import { number } from "@modules/utils";

Add Package

bunx jsr add @modules/utils

Import symbol

import { number } from "@modules/utils";