{"_id":"@bnqkl/json-dry-factory","name":"@bnqkl/json-dry-factory","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"module":"./esm/index.js","main":"./script/index.js","name":"@bnqkl/json-dry-factory","version":"1.0.0","description":"bnqkl json-dry-factory","repository":{"type":"git","url":"git+ssh://git@github.com/BioforestChain/bnqkl-JsonDryFactory.git"},"author":{"name":"BFMeta Team"},"license":"cc-by-4.0","exports":{".":{"import":"./esm/index.js","require":"./script/index.js"}},"dependencies":{"@deno/shim-deno":"~0.16.1"},"devDependencies":{"@types/node":"^18.11.9"},"types":"./script/index.d.ts","bugs":{"url":"https://github.com/BioforestChain/bnqkl-JsonDryFactory/issues"},"homepage":"https://github.com/BioforestChain/bnqkl-JsonDryFactory#readme","_id":"@bnqkl/json-dry-factory@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-0bDlvG5M3QfbeilwbXsVGSe1TzrscOwfB+8c0itPmkpQTJYGGhOXULiMQAnm1GxdaMd9hdmmrHYus3AchWkmrg==","shasum":"f5fadbc363aef6222e1bfc2495f0bf57bd9fceb8","tarball":"https://registry.npmjs.org/@bnqkl/json-dry-factory/-/json-dry-factory-1.0.0.tgz","fileCount":24,"unpackedSize":47417,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChr5xb5dn5gKI0xxOzfyLkVpZPnXHw2eUAM+Wve1aZGAiEA2aoBtrNJSjHGc5NarAG7RMV6r3w5nJnX5uKqoUthGps="}]},"_npmUser":{"name":"wzzzzx","email":"349094287@qq.com"},"directories":{},"maintainers":[{"name":"wzzzzx","email":"349094287@qq.com"},{"name":"bamboohollad","email":"aa6747771@163.com"},{"name":"kezhaofeng","email":"gaubeebangeel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-dry-factory_1.0.0_1686365178413_0.030708789359853217"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-10T02:46:18.336Z","1.0.0":"2023-06-10T02:46:18.600Z","modified":"2023-06-10T02:46:18.829Z"},"maintainers":[{"name":"wzzzzx","email":"349094287@qq.com"},{"name":"bamboohollad","email":"aa6747771@163.com"},{"name":"kezhaofeng","email":"gaubeebangeel@gmail.com"}],"description":"bnqkl json-dry-factory","homepage":"https://github.com/BioforestChain/bnqkl-JsonDryFactory#readme","repository":{"type":"git","url":"git+ssh://git@github.com/BioforestChain/bnqkl-JsonDryFactory.git"},"author":{"name":"BFMeta Team"},"bugs":{"url":"https://github.com/BioforestChain/bnqkl-JsonDryFactory/issues"},"license":"cc-by-4.0","readme":"# JSON dry Factory\n\ncreate an `JSON` instance, and registered isolated serialization/deserialization handlers for custom classes.\n\nImportantly, it is possible that a Class is registered with multiple JSON-dry instances. Will not affect each other.\n\nThis is very important. For example, during process communication, different modules may need to register a specific serialization deserialization scheme for the Error object. Use this library to ensure that this Error class can serve multiple modules at the same time.\n\nDEMO\n```ts\nimport { JSONDryFactory } from \"json-dry-factory\";\nconst jsonFac = new JSONDryFactory(\"test1\");\nconst json = jsonFac.stringify({\n    a: \"QAQ\",\n    r: /z\\d([1-z]+?)/g,\n    mix: { '4': 3, o: new Date(), 0: \"1\" },\n    e: new Error('cccc'),\n    deep: {\n        a: {\n            b: {\n                x: /44/,\n                c: {\n                    m: \"ccc\",\n                    s: /cc/\n                }\n            },\n            xx: \"432cc1\",\n            x: 4321,\n            bb: /cf/\n        }\n    }\n});\nconsole.log(json);\nconst obj = jsonFac.parse(json);\nconsole.log('-----------------------');\nconsole.log(obj);\n```","readmeFilename":"README.md"}