Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
yahoo/serialize-javascript has 2,922 GitHub stars.
It currently ranks #10202 daily, #11322 weekly, #14963 monthly by momentum on Trending Repos; its best-ever rank is #3807.