{"id":18764986,"url":"https://github.com/philecker/copy-json","last_synced_at":"2026-05-09T10:24:55.123Z","repository":{"id":171791456,"uuid":"647395262","full_name":"philecker/copy-json","owner":"philecker","description":"📦 An NPM package of a utility function to easily create a deep copy of a JSON object.","archived":false,"fork":false,"pushed_at":"2023-06-03T01:48:05.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T22:15:11.948Z","etag":null,"topics":["javascript","json","npm","npm-package","utility"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/copy-json","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/philecker.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":"2023-05-30T17:30:23.000Z","updated_at":"2023-06-04T17:35:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2cb80c4-bd0a-4c58-b38e-f911ef9cbef4","html_url":"https://github.com/philecker/copy-json","commit_stats":null,"previous_names":["philecker/copy-json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philecker%2Fcopy-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philecker%2Fcopy-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philecker%2Fcopy-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philecker%2Fcopy-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philecker","download_url":"https://codeload.github.com/philecker/copy-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239662932,"owners_count":19676476,"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":["javascript","json","npm","npm-package","utility"],"created_at":"2024-11-07T18:32:21.378Z","updated_at":"2025-12-07T14:30:27.668Z","avatar_url":"https://github.com/philecker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copy-json\n\nA utility function to create a deep copy of a JSON object.\n\n## Installation\n\nYou can install the package using npm:\n\n```shell\nnpm install copy-json\n```\n\n## Usage\n\nIn your JavaScript file, import the `copyJSON` function and use it to create a deep copy of a JSON object:\n\n```javascript\nimport copyJSON from 'copy-json';\n\nconst originalObj = { name: 'John', age: 25 };\nconst copiedObj = copyJSON(originalObj);\n\nconsole.log(originalObj); // { name: 'John', age: 25 }\nconsole.log(copiedObj);   // { name: 'John', age: 25 }\nconsole.log(originalObj === copiedObj); // false (they are separate objects)\n```\n\n## API\n\n### `copyJSON(jsonObj)`\n\nCreates a deep copy of a JSON object.\n\n- `jsonObj`: The JSON object to be copied.\n\nReturns a deep copy of the input JSON object.\n\n## License\n\nThis package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n---\n\nFeel free to customize the README file based on your specific needs and additional information about the package. Include any relevant details about the function, usage examples, configuration options, or any other information that might be helpful for users of your package.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilecker%2Fcopy-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilecker%2Fcopy-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilecker%2Fcopy-json/lists"}