Gathering detailed insights and metrics for extra-integer.web
Gathering detailed insights and metrics for extra-integer.web
Gathering detailed insights and metrics for extra-integer.web
Gathering detailed insights and metrics for extra-integer.web
A 32-bit integer can store values from -2^31 to 2^31 - 1.
npm install extra-integer.web
Typescript
Module System
Node Version
NPM Version
JavaScript (51.36%)
TypeScript (48.64%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
130 Commits
2 Watchers
2 Branches
1 Contributors
Updated on Apr 08, 2025
Latest Version
2.2.2
Package Id
extra-integer.web@2.2.2
Unpacked Size
11.05 kB
Size
4.20 kB
File Count
6
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 08, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A 32-bit integer can store values from -2^31
to 2^31 - 1
.
📦 Node.js,
🌐 Web,
📜 Files,
📰 Docs,
📘 Wiki.
This package deals with the manipulation of 32-bit integers in JavaScript,
which can store values ranging from -2^31
(MIN_VALUE) to 2^31 - 1
(MAX_VALUE). JavaScript converts a Number
(a 64-bit floating point number)
to a 32-bit integer (int32
) when bitwise operators (such as |
) are
applied.
Use is to check is a number can be represented as a 32-bit integer. Sign-based operations include abs and signEqual. Power/logarithm related operations include isPow2, prevPow2, nextPow2, pow2, pow10, log2, and log10.
This package is available in Node.js and Web formats. To use it on the web,
simply use the extra_integer
global variable after loading with a <script>
tag from the jsDelivr CDN.
Stability: Experimental.
1const xinteger = require('extra-integer'); 2// import * as xinteger from "extra-integer"; 3// import * as xinteger from "https://unpkg.com/extra-integer/index.mjs"; (deno) 4 5xinteger.is(9.11e-31); 6// → false 7 8xinteger.log10(10000); 9// → 4 10 11xinteger.nextPow2(63); 12// → 64
Property | Description |
---|---|
MIN_VALUE | Minimum int32 value. |
MAX_VALUE | Maximum int32 value. |
is | Check if value is int32. |
abs | Get the absolute of an int32. |
signEqual | Check if two int32s have equal sign. |
isPow2 | Check if int32 is a power-of-2. |
prevPow2 | Find previous power-of-2 of an int32. |
nextPow2 | Find next power-of-2 of an int32. |
pow2 | Find the power-of-2 of an int32. |
pow10 | Find the power-of-10 of an int32. |
log2 | Find the base-2 logarithm of an int32. |
log10 | Find the base-10 logarithm of an int32. |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
6 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More