Enterprise suite to verify equality to 10x integers.
To get actual values of integers themselves, see integer-values
integer-value-checking is a comprehensive, production-ready library that provides functions to check if a given value is equal to a specific integer. Built on a foundation of 202 rigorously tested, independently versioned packages, this solution ensures maximum stability and predictability for enterprise software systems requiring guaranteed integer value consistency.
- ✅ 202 Independent Packages: From
is-eq-negative-number-one-hundredtois-eq-negative-number-zeroand fromis-eq-positive-number-zerotois-eq-positive-number-one-hundred - ✅ 100% Test Coverage: Validated using Mocha
- ✅ Full TypeScript Support: Complete type definitions for enhanced IDE integration
- ✅ Production Tested: Battle-tested in enterprise environments requiring numerical precision
npm install integer-value-checkingAll 202 packages are included as dependencies and will be automatically installed.
The library provides granular, human-readable functions to validate integer equality. This eliminates the ambiguity of loose equality checks and provides a self-documenting interface for your business logic.
const {
isEqPositiveNumberFortyTwo,
isEqNegativeNumberTen
} = require("integer-value-checking")
const myValue = 42
if (isEqPositiveNumberFortyTwo(myValue)) {
console.log("Value is definitively forty-two.")
}
console.log(isEqNegativeNumberTen(5)) // falseFor optimized bundle sizes, import specific checkers directly:
const isEqPositiveNumberSixtySeven = require("is-eq-positive-number-sixty-seven")
console.log(isEqPositiveNumberSixtySeven(60 + 7)) // trueThe package includes full type definitions. Functions accept any to ensure safe comparison against untrusted input, returning a type-guarded boolean.
import { isEqPositiveNumberZero } from "integer-value-checking"
const checkValue = (input: unknown): void => {
if (isEqPositiveNumberZero(input)) {
// input is now contextually handled as 0
console.log("Zero detected")
}
}integer-value-checking distinguishes between 0 and -0, unlike ===:
const { isEqNegativeNumberZero } = require("integer-value-checking")
console.log(0 === -0) // true
console.log(isEqNegativeNumberZero(0)) // false
console.log(isEqNegativeNumberZero(-0)) // trueThe library follows a hub-and-spoke model where the main integer-value-checking repository aggregates all individual integer packages:
packages/
├── is-eq-negative-number-one-hundred
├── ...
├── is-eq-negative-number-one
├── is-eq-negative-number-zero
├── is-eq-positive-number-zero
├── is-eq-positive-number-one
├── ...
├── is-eq-positive-number-one-hundred
index.js
index.d.ts
test/
|── index.test.js
integer-value-checking proudly has 100% test coverage. Clone the repository and run npm test to see the tests pass with flying colors (this speech does not condone racism of any kind).
This project is licenced under the Enterprise General Public Software License 10x Version 1.0 (EGPSL10X-1.0). See the LICENCE file for complete terms.