Skip to content

Commit e3ab9f1

Browse files
committed
update package.json & readme
1 parent e6757ff commit e3ab9f1

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ bun install @pocketnode/binarystream
3030
In a TypeScript or JavaScript file, import the `BinaryStream` module:
3131

3232
```typescript
33-
import { BinaryStream } from "@pocketnode/binarystream";
33+
import BinaryStream from "@pocketnode/binarystream";
3434
// or through CDN
35-
import { BinaryStream } from "https://unpkg.com/@pocketnode/binarystream@latest/dist/BinaryStream.js";
35+
import BinaryStream from "https://unpkg.com/@pocketnode/binarystream@latest/dist/BinaryStream.js";
3636
```
3737

3838
### Creating a BinaryStream Instance
@@ -53,7 +53,7 @@ const streamFromBuffer = new BinaryStream(buffer);
5353
Here is a complete example demonstrating how to write and read data using `BinaryStream`:
5454

5555
```typescript
56-
import { BinaryStream } from "@pocketnode/binarystream";
56+
import BinaryStream from "@pocketnode/binarystream";
5757

5858
// Create a BinaryStream with a new ArrayBuffer of 1024 bytes
5959
const stream = new BinaryStream(1024);

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
"types": "./dist/BinaryStream.d.ts",
66
"version": "1.1.1",
77
"type": "module",
8+
"keywords": [
9+
"binary",
10+
"stream",
11+
"buffer",
12+
"data",
13+
"read",
14+
"write",
15+
"endian",
16+
"web",
17+
"node"
18+
],
819
"scripts": {
920
"build": "bun run build.ts"
1021
},

0 commit comments

Comments
 (0)