{"id":16527996,"url":"https://github.com/kelin2025/nanoclone","last_synced_at":"2025-04-04T15:08:14.317Z","repository":{"id":46342722,"uuid":"111859679","full_name":"Kelin2025/nanoclone","owner":"Kelin2025","description":"Tiny util to deep clone JavaScript objects","archived":false,"fork":false,"pushed_at":"2023-05-11T01:22:09.000Z","size":296,"stargazers_count":73,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-23T19:39:13.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Kelin2025.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":"2017-11-24T00:12:09.000Z","updated_at":"2024-06-18T13:33:51.515Z","dependencies_parsed_at":"2024-06-18T13:33:37.647Z","dependency_job_id":"dac144dc-bfc1-44e1-9b75-09054c425579","html_url":"https://github.com/Kelin2025/nanoclone","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/Kelin2025%2Fnanoclone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kelin2025%2Fnanoclone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kelin2025%2Fnanoclone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kelin2025%2Fnanoclone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kelin2025","download_url":"https://codeload.github.com/Kelin2025/nanoclone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198459,"owners_count":20900080,"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-10-11T17:37:47.595Z","updated_at":"2025-04-04T15:08:14.284Z","avatar_url":"https://github.com/Kelin2025.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"# nanoclone\n[![license](https://img.shields.io/github/license/kelin2025/nanoclone.svg)](https://github.com/kelin2025/nanoclone/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/nanoclone.svg)](https://npmjs.com/package/nanoclone)  \nOnly **300B** to deep clone JavaScript objects\n\n## Is it small enough?\nSee the size of the most popular **[clone](https://www.npmjs.com/package/clone)** npm package with **250M+** downloads\n![image](https://user-images.githubusercontent.com/4208480/34631395-30df289c-f281-11e7-8442-01502af2097a.png)  \nAnd nanoclone size:  \n![image](https://user-images.githubusercontent.com/4208480/35292759-9c839f06-0082-11e8-9196-d710d530a74b.png)\n\n## Supported \n- [x] Primitives\n- [x] Arrays\n- [x] Plain objects\n- [x] DOM Nodes\n- [x] Date instances\n- [x] RegExp instances\n- [x] Maps\n- [x] Sets\n- [x] Circular structures\n\n## Installation\n```\nyarn add nanoclone\nnpm install nanoclone\n```\n\n## Usage\n```javascript\nimport clone from 'nanoclone'\n\nlet a = {\n  num: 2,\n  arr: [1, 2, 3],\n  nested: {\n    obj: {\n      a: 0\n    }\n  }\n}\n\nlet b = clone(a)\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelin2025%2Fnanoclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkelin2025%2Fnanoclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelin2025%2Fnanoclone/lists"}