{"id":26423821,"url":"https://github.com/yanyunwu/actjson-config","last_synced_at":"2026-05-11T16:37:11.844Z","repository":{"id":57702296,"uuid":"493632270","full_name":"yanyunwu/actjson-config","owner":"yanyunwu","description":"响应式的json配置文件","archived":false,"fork":false,"pushed_at":"2022-05-18T11:46:10.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-18T15:52:32.057Z","etag":null,"topics":["es6","jacascript","json","proxy"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/yanyunwu.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}},"created_at":"2022-05-18T11:23:16.000Z","updated_at":"2022-05-26T13:38:29.000Z","dependencies_parsed_at":"2022-09-26T21:11:13.566Z","dependency_job_id":null,"html_url":"https://github.com/yanyunwu/actjson-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanyunwu/actjson-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanyunwu%2Factjson-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanyunwu%2Factjson-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanyunwu%2Factjson-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanyunwu%2Factjson-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanyunwu","download_url":"https://codeload.github.com/yanyunwu/actjson-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanyunwu%2Factjson-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["es6","jacascript","json","proxy"],"created_at":"2025-03-18T02:54:35.261Z","updated_at":"2026-05-11T16:37:11.828Z","avatar_url":"https://github.com/yanyunwu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actjson-config\n基于es6代理响应式的json配置文件\n\n\n\n## 快速使用\n\n**文件地址**： `./config.json`\n\n```json\n{\n  \"a\": 1,\n  \"b\": 2,\n  \"c\": 3\n}\n```\n\n**文件地址**： `./test.js`\n\n```js\nconst { ActJson } = require('.');\n\nconst json = new ActJson('./config.json');\nconst config = json.getConfig();\nconfig.a = 2;\nconfig.b = 3;\nconfig.c = 4;\n\n// config.a = 1;\n// config.b = 2;\n// config.c = 3;\n\nconsole.log(config);\n```\n\n以上例子中，不仅对象上的数据会变，json文件中的内容同样会变\n\n*注意：actjson支持嵌套对象和数组的使用*\n\n\n\n## 响应模式\n\n同步模式 ：`new ActJson('./config.json', { sync: true })`\n\n非必要情况下尽量不要使用同步模式\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanyunwu%2Factjson-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanyunwu%2Factjson-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanyunwu%2Factjson-config/lists"}