b4n1-boost 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/package.json +3 -2
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# b4n1-boost for Node.js
|
|
2
|
+
|
|
3
|
+
**The Native Accelerator.** One Rust core for Python, Node.js, .NET and Java — JSON 10x faster, compression 28x faster. BSL-1.1 (native binary under EULA.txt).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install b4n1-boost
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Native library embedded per platform (`bin/linux-x64`, `bin/linux-arm64`,
|
|
12
|
+
`bin/macos-x64`, `bin/macos-arm64`, `bin/windows-x64`). Pure-JS fallback
|
|
13
|
+
included when the native lib is absent.
|
|
14
|
+
|
|
15
|
+
## Use
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const B4N1Boost = require('b4n1-boost');
|
|
19
|
+
const gz = B4N1Boost.compressGzip(Buffer.from('hello'.repeat(1000)));
|
|
20
|
+
const ok = B4N1Boost.isJsonValid('{"a":1}');
|
|
21
|
+
const min = B4N1Boost.minifyHtml('<p> hi </p>');
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Test
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm test # 4-state matrix, must be 4/4 green
|
|
28
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "b4n1-boost",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "High-performance native Rust boost layer for Node.js & Express",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"express.js",
|
|
22
22
|
"bin/",
|
|
23
23
|
"LICENSE",
|
|
24
|
-
"EULA.txt"
|
|
24
|
+
"EULA.txt",
|
|
25
|
+
"README.md"
|
|
25
26
|
]
|
|
26
27
|
}
|