UNPKG

regstr

Version:

JSON.stringify objects with RegExp properties and then JSON.parse json string resulted back into original objects. Converts RegExp object to be serializable - into pair of strings (key,value). Could be used for RegExp being bilaterally stringified and ge

21 lines (20 loc) 844 B
{ "name": "regstr", "version": "0.5.5", "description": "JSON.stringify objects with RegExp properties and then JSON.parse json string resulted back into original objects. Converts RegExp object to be serializable - into pair of strings (key,value). Could be used for RegExp being bilaterally stringified and geting parsed back. Provides Replacer and Reviver functions as second parameter of JSON object enabling RegExp serialization and parsing back", "main": "regstr.js", "scripts": { "test": "node test.js", "explain": "node ./docs/explain_regstr.js", "explain_deciph": "node ./docs/deciphering_explain.js", "explain_ciph": "node ./docs/ciphering_explain.js" }, "keywords": [ "json", "RegExp", "stringify", "parse" ], "author": "Vladimir Uralov <v.url.node@gmail.com>", "license": "MIT" }