{"id":18733171,"url":"https://github.com/bioforestchain/bnqkl-jsondryfactory","last_synced_at":"2025-11-14T00:30:16.740Z","repository":{"id":176563655,"uuid":"651477347","full_name":"BioforestChain/bnqkl-JsonDryFactory","owner":"BioforestChain","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-10T03:08:04.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-03-15T10:12:51.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BioforestChain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-09T10:18:02.000Z","updated_at":"2023-06-10T03:08:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"f84f832a-7ae6-47b9-a4d7-16fa0a1ccb67","html_url":"https://github.com/BioforestChain/bnqkl-JsonDryFactory","commit_stats":null,"previous_names":["bioforestchain/bnqkl-jsondryfactory"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fbnqkl-JsonDryFactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fbnqkl-JsonDryFactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fbnqkl-JsonDryFactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioforestChain%2Fbnqkl-JsonDryFactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BioforestChain","download_url":"https://codeload.github.com/BioforestChain/bnqkl-JsonDryFactory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605124,"owners_count":19666998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:08:55.760Z","updated_at":"2025-11-14T00:30:16.677Z","avatar_url":"https://github.com/BioforestChain.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"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```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbioforestchain%2Fbnqkl-jsondryfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbioforestchain%2Fbnqkl-jsondryfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbioforestchain%2Fbnqkl-jsondryfactory/lists"}