serialize-javascript
serialize-javascript copied to clipboard
Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
I want to ignore all keys starting with `_` when serializing. Will it be implemented?
allow users to use json-stable-stringify https://github.com/substack/json-stable-stringify
The `randombytes` library may throw an error if the browser does not support the [crypto](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto). Probably, the good solution in this case would be using the old way of building...
I always get the weirdest issues. So, serialize-javascript works fine in actual production, but it somehow outputs a different thing while running a test. In the example of the object...

Symbols
I'm not sure if you want to have symbols as part of this or not ``` js { [Symbol('foo')]: Symbol('bar') } ```
From json.org: > The eval function is very fast. However, it can compile and execute any JavaScript program, so there can be security issues. The use of eval is indicated...
  before serialize code:  the reason is "async"? how to solve it
I cannot easily upgrade to v2 in my project since it is an indirect dependency.
I'd love an option to render functions in modern ES6 and [standardJS](https://standardjs.com) syntax. Eg. instead of ```js const echo = function (arg) { return arg; } ``` I'd want ```js...