{"id":22151443,"url":"https://github.com/ylzon/handwriting-javascript","last_synced_at":"2025-10-19T02:25:08.262Z","repository":{"id":42889868,"uuid":"248908357","full_name":"ylzon/handwriting-javascript","owner":"ylzon","description":"手写 currify / promise / bind / Deep Clone / EventHub","archived":false,"fork":false,"pushed_at":"2023-05-09T02:39:19.000Z","size":135,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T18:24:28.266Z","etag":null,"topics":["bind","currify","deep-clone","eventhub","promise"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ylzon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-03-21T04:46:27.000Z","updated_at":"2022-02-11T18:02:48.000Z","dependencies_parsed_at":"2024-12-02T00:43:21.908Z","dependency_job_id":null,"html_url":"https://github.com/ylzon/handwriting-javascript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylzon%2Fhandwriting-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylzon%2Fhandwriting-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylzon%2Fhandwriting-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylzon%2Fhandwriting-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ylzon","download_url":"https://codeload.github.com/ylzon/handwriting-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245276179,"owners_count":20588906,"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":["bind","currify","deep-clone","eventhub","promise"],"created_at":"2024-12-02T00:33:12.366Z","updated_at":"2025-10-19T02:25:08.167Z","avatar_url":"https://github.com/ylzon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 手写JavaScript常见代码\n手写 currify / promise / bind / Deep copy / EventHub\n\n## TodoList\n* [x] [Currify](https://github.com/ylzon/handwriting-javascript/blob/master/src/currify/index.ts)\n* [x] [EventHub](https://github.com/ylzon/handwriting-javascript/blob/master/src/enent-bus/index.ts)\n* [x] [DeepCopy](https://github.com/ylzon/handwriting-javascript/blob/master/src/deep-clone/index.ts)\n* [x] [bind](https://github.com/ylzon/handwriting-javascript/blob/master/src/bind/index.ts)\n* [ ] Promise/A+\n\n## Install\n\n```shell\nnpm install\n```\n\n## Test\n\n```shell\nnpm run test\n```\n\n```\n  Bind\n    ✓ should Bind is Function\n    ✓ should function bind exist\n    ✓ should bind this success\n    ✓ should bind multiple parameters\n    ✓ should Pass the second parameter after the first parameter is bound successfully\n    ✓ should bind parameters when new\n    ✓ should bind parameters when new and fn has a prototype\n    ✓ should bind no new but with a similar object\n\n  Currify\n    ✓ should Currify is Function\n    ✓ should Currify accept single parameter\n    ✓ should Currify accept multiple parameters\n\n  Deep Clone\n    ✓ should Deep Clone is Function\n    ✓ should Deep Clone be possible to copy basic types\n    Object\n      ✓ should be copy Ordinary object\n      ✓ should be copy Array object\n      ✓ should be copy Function object\n      ✓ should be copy loop object\n      ✓ should be copy date object\n      ✓ should be copy RegExp object\n      ✓ should be Auto-skipping prototype properties\n      ✓ should be possible to copy very complex objects\n\n  EvanHub\n    ✓ should EvenHub is Object\n    ✓ should .emit have be work\n    ✓ should .emit can pass parameters\n    ✓ should .off have be work\n```\n\n## LICENSE\n[MIT](LICENSE)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylzon%2Fhandwriting-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fylzon%2Fhandwriting-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylzon%2Fhandwriting-javascript/lists"}