issues
search
yahoo
/
serialize-javascript
Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
Other
2.82k
stars
182
forks
source link
Serialize regexp to literal
#182
Open
fisker
opened
4 months ago
fisker
commented
4 months ago
Instead of
{foo: new RegExp("a", "i")}
serialize to
{foo: /a/i}
Instead of
serialize to