{"id":20252309,"url":"https://github.com/7kms/design-pattern","last_synced_at":"2025-08-23T11:08:48.509Z","repository":{"id":106334625,"uuid":"110708950","full_name":"7kms/design-pattern","owner":"7kms","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-03T15:59:57.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T11:04:49.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/7kms.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":"2017-11-14T15:34:42.000Z","updated_at":"2017-11-14T15:42:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"722a9ee8-c5e7-4de2-ba61-dbfe74ab7870","html_url":"https://github.com/7kms/design-pattern","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7kms/design-pattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fdesign-pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fdesign-pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fdesign-pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fdesign-pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7kms","download_url":"https://codeload.github.com/7kms/design-pattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fdesign-pattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746755,"owners_count":24813580,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-11-14T10:16:06.759Z","updated_at":"2025-08-23T11:08:48.500Z","avatar_url":"https://github.com/7kms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 重读 javascript 设计模式\n\n### 设计模式\n\n1. [原型模式](./prototype/index.md)\n2. [单例模式](./singleton/index.md)\n3. [策略模式](./strategy/index.md)\n4. [代理模式](./proxy/index.md)\n5. [迭代器模式](./iterator/index.md)\n6. [发布订阅(观察者)模式](./observer/index.md)\n7. [命令模式](./command/index.md)\n8. [组合模式](./composite/index.md)\n9. [模板方法模式](./template/index.md)\n10. [享元模式](./flyweight/index.md)\n11. [职责链模式](./responsibility/index.md)\n12. [中介者模式](./mediator/index.md)\n13. [装饰者模式](./decorator/index.md)\n14. [状态模式](./status/index.md)\n15. [适配器模式](./adapter/index.md)\n\n### 设计原则和编程技巧\n1. 单一职责问题\n2. 最少知识原则\n3. 开放-封闭原则\n4. 接口和面向接口编程\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7kms%2Fdesign-pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7kms%2Fdesign-pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7kms%2Fdesign-pattern/lists"}