Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Feb 9, 2023
0 parents commit 0b5f805
Show file tree
Hide file tree
Showing 14 changed files with 1,126 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* linguist-vendored=true
*.ts linguist-vendored=false
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [hazae41]
patreon: hazae41
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
/node_modules
/dist
28 changes: 28 additions & 0 deletions README.md
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
```
Loading

0 comments on commit 0b5f805

Please sign in to comment.