ordered-binary 1.2.3 → 1.3.0
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 +5 -0
- package/dist/index.cjs +352 -332
- package/index.d.ts +23 -0
- package/index.js +352 -332
- package/package.json +2 -2
- package/tests/test.js +128 -128
- package/uuid.js +110 -0
package/README.md
CHANGED
|
@@ -32,3 +32,8 @@ The main module exports these functions:
|
|
|
32
32
|
`toBufferKey(jsPrimitive)` - This accepts a string, number, or boolean as the argument, and returns a `Buffer`.
|
|
33
33
|
|
|
34
34
|
`fromBufferKey(bufferKey, multiple)` - This accepts a Buffer and returns a JavaScript primitive value. This can also parse buffers that hold multiple values delimited by a byte `30`, by setting the second argument to true (in which case it will return an array).
|
|
35
|
+
|
|
36
|
+
And these constants:
|
|
37
|
+
|
|
38
|
+
`MINIMUM_KEY` - The minimum key supported (`null`, which is represented as single zero byte)
|
|
39
|
+
`MAXIMUM_KEY` - A maximum key larger than any supported primitive (single 0xff byte)
|