-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0b5f805
Showing
14 changed files
with
1,126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* linguist-vendored=true | ||
*.ts linguist-vendored=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [hazae41] | ||
patreon: hazae41 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
/node_modules | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Bitset | ||
|
||
Utilities for arithmetic bitwise operations in JavaScript | ||
|
||
```bash | ||
npm i @hazae41/bitset | ||
``` | ||
|
||
[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/bitset) | ||
|
||
### Current features | ||
- 100% TypeScript and ESM | ||
- Unit-tested | ||
- Big-endian and little-endian | ||
- Export to uint32 | ||
- Builder pattern | ||
|
||
### Usage | ||
|
||
```typescript | ||
const bitset = new Bitset(0x00, 8) | ||
|
||
const result = bitset | ||
.toggleLE(1) // 0000 0010 | ||
.toggleBE(1) // 0100 0010 | ||
.unsign() // >>> 0 | ||
.value | ||
``` |
Oops, something went wrong.