{"id":29007741,"url":"https://github.com/viktor-maksimov/js-deep-cloning","last_synced_at":"2026-04-04T20:33:00.902Z","repository":{"id":57283091,"uuid":"453745735","full_name":"viktor-maksimov/js-deep-cloning","owner":"viktor-maksimov","description":"Deep cloning, so the pointers are lost.","archived":false,"fork":false,"pushed_at":"2022-02-04T21:24:42.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T16:08:50.600Z","etag":null,"topics":["angular","cloning","deep-clone","deep-clone-objects","ecmascript","es6","javascript","object","reactjs","structured-clone","typescript","vuejs"],"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/viktor-maksimov.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}},"created_at":"2022-01-30T17:13:31.000Z","updated_at":"2024-03-07T15:16:45.000Z","dependencies_parsed_at":"2022-09-17T12:50:44.039Z","dependency_job_id":null,"html_url":"https://github.com/viktor-maksimov/js-deep-cloning","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/viktor-maksimov/js-deep-cloning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktor-maksimov%2Fjs-deep-cloning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktor-maksimov%2Fjs-deep-cloning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktor-maksimov%2Fjs-deep-cloning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktor-maksimov%2Fjs-deep-cloning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viktor-maksimov","download_url":"https://codeload.github.com/viktor-maksimov/js-deep-cloning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viktor-maksimov%2Fjs-deep-cloning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","cloning","deep-clone","deep-clone-objects","ecmascript","es6","javascript","object","reactjs","structured-clone","typescript","vuejs"],"created_at":"2025-06-25T13:38:26.161Z","updated_at":"2026-04-04T20:33:00.874Z","avatar_url":"https://github.com/viktor-maksimov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript Deep Cloning\n\nJavascript deep cloning, so pointers are lost.\n\n\u003cbr /\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/js-deep-cloning\"\u003e\n  \u003cimg src=\"https://camo.githubusercontent.com/890acbdcb87868b382af9a4b1fac507b9659d9bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/js-deep-cloning\"\u003e\n  \u003cimg src=\"https://camo.githubusercontent.com/cf80a63dc680fa3e0d2f6b729fea1a0a14ae5a1e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d3130302532352d627269676874677265656e2e737667\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/js-deep-cloning\"\u003e\n  \u003cimg src=\"https://camo.githubusercontent.com/d4e0f63e9613ee474a7dfdc23c240b9795712c96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667\" /\u003e\n\u003c/a\u003e\n\n## Usage\n\n### Install the package\n\npackage.json\n```\n{\n  \"dependencies\": {\n    \"js-deep-cloning\": \"latest\"\n  }\n}\n```\n\nAfter that (with Yarn):\n```\nyarn install\n```\n\nOr with NPM:\n```\nnpm install\n```\n\nAnd finally you can use it in your project:\n```\nimport { deepClone } from \"js-deep-cloning\"\n\nconst student = {\n  id: 1,\n  name: \"Jack\",\n  items: [\"pen\", \"rubber\", \"textbook\", \"tablet\"],\n  examDate: new Date(),\n  classmates: [\n    {\n      id: 2,\n      name: \"John\",\n      items: null,\n      examDate: new Date()\n    },\n    {\n      id: 2,\n      name: \"James\",\n      items: [\"pencil\", \"laptop\"],\n      exams: [new Date(), new Date()]\n    }\n  ],\n  university: null\n}\n\nconst studentData = deepClone(student)\n```\n\n## Contribution\n\nEverybody can contribute\n\n### Useful commands (examples with yarn)\n\nBuild your code:\n```\nyarn build\n```\n\nRun tests:\n```\nyarn test\n```\n\nGenerate test coverage:\n```\nyarn test:coverage\n```\n\nRun ESLint:\n```\nyarn lint\n```\n\n### Important\n\nPlease before opening a PR for this package - run tests and eslint and fix the errors in your code.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviktor-maksimov%2Fjs-deep-cloning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviktor-maksimov%2Fjs-deep-cloning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviktor-maksimov%2Fjs-deep-cloning/lists"}