File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ bun install @pocketnode/binarystream
3030In 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);
5353Here 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
5959const stream = new BinaryStream (1024 );
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments