@cloudpss/ubjson 0.6.15 → 0.6.17
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 +9 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,15 @@ Opinionated UBJSON encoder/decoder for CloudPSS.
|
|
|
4
4
|
|
|
5
5
|
Inspired by https://bitbucket.org/shelacek/ubjson, optimized for huge objects.
|
|
6
6
|
|
|
7
|
+
## Example
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { encode, decode } from '@cloudpss/ubjson';
|
|
11
|
+
|
|
12
|
+
const bytes = encode({ foo: 'bar' });
|
|
13
|
+
const value = decode(bytes);
|
|
14
|
+
```
|
|
15
|
+
|
|
7
16
|
## API
|
|
8
17
|
|
|
9
18
|
### encode(value: unknown): Uint8Array
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudpss/ubjson",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"author": "CloudPSS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/lodash": "^4.17.23",
|
|
24
|
-
"lodash": "^4.17.
|
|
24
|
+
"lodash": "^4.17.23",
|
|
25
25
|
"ref-impl": "npm:@cloudpss/ubjson@0.5.55"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|