Gathering detailed insights and metrics for extra-bit.min
Gathering detailed insights and metrics for extra-bit.min
Gathering detailed insights and metrics for extra-bit.min
Gathering detailed insights and metrics for extra-bit.min
The bit is a basic unit of information in information theory, computing.
npm install extra-bit.min
Typescript
Module System
Node Version
NPM Version
TypeScript (64.02%)
JavaScript (35.98%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
101 Commits
1 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Apr 08, 2025
Latest Version
2.0.1
Package Id
extra-bit.min@2.0.1
Unpacked Size
16.02 kB
Size
5.30 kB
File Count
7
NPM Version
7.7.6
Node Version
15.13.0
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
No dependencies detected.
The bit is a basic unit of information in information theory, computing.
This package includes bit twiddling hacks by Sean Eron Anderson and many others.
:package: NPM,
:smiley_cat: GitHub,
:running: RunKit,
:vhs: Asciinema,
:moon: Minified,
:scroll: Files,
:newspaper: JSDoc,
:blue_book: Wiki.
Stability: Experimental.
This is browserified, minified version of extra-bit.
It is exported as global variable bit.
CDN: unpkg, jsDelivr.
1const bit = require("extra-bit"); 2// import * as bit from "extra-bit"; 3// import * as bit from "https://unpkg.com/extra-bit@1.0.50/index.mjs"; (deno) 4 5bit.count(7); 6// 3 (111 ⇒ 3) 7 8bit.parity(8, 2); 9// 2 (10,00 ⇒ 10) 10 11bit.swap(6, 1, 0); 12// 5 (110 ⇒ 101) 13 14bit.reverse(0xFFFF0000); 15// 65535 (0x0000FFFF) 16 17bit.signExtend(15, 4); 18// -1
Method | Action |
---|---|
get | Gets a bit. |
set | Sets a bit. |
toggle | Toggles a bit. |
swap | Swaps bit sequences. |
scan | Finds index of first set bit from LSB. |
count | Counts bits set. |
parity | Finds n-bit parity. |
rotate | Rotates bits. |
reverse | Reverses all bits. |
merge | Merges bits as per mask. |
interleave | Interleaves bits of two int16s. |
signExtend | Sign extends variable bit-width integer. |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
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
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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