serialize-javascript (npm): Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
Keywords: serialize|serialization|javascript|js|json|web