Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
pabloimrik17/monolabIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
88%
Published
a month ago (5.1.4)
@m0n0lab/is-odd
A simple, well-tested utility to check if a number is odd. Perfect for number validation, mathematical operations, conditional logic, and filtering.
Features
- ๐ฏ Simple and intuitive API
- โ Fully typed with TypeScript
- ๐งช 100% test coverage
- ๐ฆ Zero dependencies
- โก Lightweight and fast
- ๐ Secure and reliable
- ๐ Production ready
- ๐ Well documented
Installation
npm
npm install @m0n0lab/is-odd
pnpm
pnpm add @m0n0lab/is-odd
JSR
npx jsr add @m0n0lab/is-odd
Usage
import { isOdd, isNotOdd } from "@m0n0lab/is-odd"; // Check if a number is odd console.log(isOdd(3)); // true console.log(isOdd(2)); // false // Check if a number is not odd (even) console.log(isNotOdd(2)); // true console.log(isNotOdd(3)); // false
API
isOdd(value: number): boolean
Returns true if the number is odd, false otherwise.
isNotOdd(value: number): boolean
Returns true if the number is not odd (i.e., even), false otherwise.
License
MIT
Built and signed on
GitHub Actions
Add Package
deno add jsr:@m0n0lab/is-odd
Import symbol
import * as is_odd from "@m0n0lab/is-odd";
Import directly with a jsr specifier
import * as is_odd from "jsr:@m0n0lab/is-odd";
Add Package
pnpm i jsr:@m0n0lab/is-odd
pnpm dlx jsr add @m0n0lab/is-odd
Import symbol
import * as is_odd from "@m0n0lab/is-odd";
Add Package
yarn add jsr:@m0n0lab/is-odd
yarn dlx jsr add @m0n0lab/is-odd
Import symbol
import * as is_odd from "@m0n0lab/is-odd";
Add Package
vlt install jsr:@m0n0lab/is-odd
Import symbol
import * as is_odd from "@m0n0lab/is-odd";
Add Package
npx jsr add @m0n0lab/is-odd
Import symbol
import * as is_odd from "@m0n0lab/is-odd";
Add Package
bunx jsr add @m0n0lab/is-odd
Import symbol
import * as is_odd from "@m0n0lab/is-odd";