You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-21Lines changed: 23 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
# BinaryStream
2
2
3
-
`BinaryStream` is a TypeScript package designed to facilitate the reading and writing of binary data. This package leverages the `ArrayBuffer` and `DataView` interfaces, making it compatible with both Node.js and browser environments.
3
+
`BinaryStream` is an Typescript module designed to facilitate the reading and writing of binary data. This package uses the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) and [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) interfaces, both of which are native to Javascript making it compatible with Node.js and browser environments.
4
4
5
5
## Features
6
6
7
7
- Supports both Node.js and browser environments.
8
8
- Provides an easy-to-use API for handling binary data.
9
9
- Methods for reading and writing various data types (integers, floats, strings, etc.).
10
-
- Allows for dynamic buffer creation without worrying about resizing.
10
+
- Allows for dynamic buffer creation without worrying about sizing.
11
11
12
12
## Installation
13
13
14
-
You can install the `BinaryStream` package via npm:
14
+
You can install the `BinaryStream` package via npm.
15
15
16
16
```bash
17
17
npm install @pocketnode/binarystream
@@ -27,36 +27,41 @@ bun install @pocketnode/binarystream
27
27
28
28
### Importing the Module
29
29
30
-
In a TypeScript or JavaScript file, import the `BinaryStream` module:
`BinaryStream` works in both Node.js and browser environments. It relies on `ArrayBuffer` and `DataView`, which are available in [modern browsers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer#browser_compatibility) and Node.js.
85
-
86
88
## License
87
89
88
90
This project is licensed under the GNU GPLv3 License. See the [LICENSE](LICENSE) file for details.
0 commit comments