{"id":22222055,"url":"https://github.com/fabiospampinato/duper","last_synced_at":"2025-08-27T02:09:14.298Z","repository":{"id":62760271,"uuid":"562306937","full_name":"fabiospampinato/duper","owner":"fabiospampinato","description":"Standalone functions for creating shallow clones or deep clones.","archived":false,"fork":false,"pushed_at":"2023-09-24T16:37:51.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T12:21:28.003Z","etag":null,"topics":["clone","deep","shallow"],"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/fabiospampinato.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-11-05T23:24:58.000Z","updated_at":"2023-12-11T16:08:52.000Z","dependencies_parsed_at":"2022-11-06T00:00:26.831Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/duper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fduper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fduper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fduper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fduper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/duper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"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":["clone","deep","shallow"],"created_at":"2024-12-02T23:16:42.595Z","updated_at":"2024-12-02T23:16:43.348Z","avatar_url":"https://github.com/fabiospampinato.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duper\n\nStandalone functions for creating shallow clones or deep clones.\n\nIt supports cloning primitives, `Array`, `Map`, `Set`, `Date`, `RegExp`, `ArrayBuffer`, `DataView`, `Int8Array`, `Uint8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array`, `Float64Array`, `BigInt64Array`, `BigUint64Array`, `Error`, `EvalError`, `RangeError`, `ReferenceError`, `SyntaxError`, `TypeError`, `URIError`, and plain objects, trying to clone anything else will throw.\n\n## Install\n\n```sh\nnpm install --save duper\n```\n\n## Usage\n\n```ts\nimport {cloneShallow, cloneDeep} from 'duper';\n\ncloneShallow ({ foo: { value: 123 } }); // =\u003e Shallow clone of the object\ncloneDeep ({ foo: { value: 123 } }); // =\u003e Deep clone of the object\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fduper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fduper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fduper/lists"}