json-with-bigint 3.1.0 → 3.1.1
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 +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ JSONParse(JSONStringify(data)).bigNumber === 9007199254740992n // true
|
|
|
24
24
|
|
|
25
25
|
✔️ No need to change your JSON or the way you want to work with your data
|
|
26
26
|
|
|
27
|
-
✔️ You don't have to memorize this library's API, you already know it. Just skip the dot,
|
|
27
|
+
✔️ You don't have to memorize this library's API, you already know it. Just skip the dot, and that's it (JSONParse(), JSONStringify())
|
|
28
28
|
|
|
29
29
|
✔️ Parses and stringifies all other values other than big numbers the same way as native JSON methods in JS do. You can just replace every `JSON.parse` and `JSON.stringify` call in your project with functions from this library and it'll work.
|
|
30
30
|
|
|
@@ -34,6 +34,8 @@ JSONParse(JSONStringify(data)).bigNumber === 9007199254740992n // true
|
|
|
34
34
|
|
|
35
35
|
✔️ Does not contaminate your global space (unlike monkey-patching solution)
|
|
36
36
|
|
|
37
|
+
✔️ Isomorphic (it can run in both the browser and Node.js with the same code)
|
|
38
|
+
|
|
37
39
|
✔️ Can be used in both JavaScript and TypeScript projects (.d.ts file included)
|
|
38
40
|
|
|
39
41
|
✔️ Can be used as both ESM and CommonJS module
|