{"id":13493750,"url":"https://github.com/jsmini/clone","last_synced_at":"2025-03-28T12:32:23.429Z","repository":{"id":33153560,"uuid":"152245980","full_name":"jsmini/clone","owner":"jsmini","description":"A professional deep clone library","archived":false,"fork":false,"pushed_at":"2024-02-26T04:02:05.000Z","size":744,"stargazers_count":242,"open_issues_count":11,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-01T21:35:08.562Z","etag":null,"topics":["clone","clonedeep","deep","deep-clone","deepclone"],"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/jsmini.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://yanhaijing.com/mywallet/"]}},"created_at":"2018-10-09T12:19:26.000Z","updated_at":"2025-02-05T16:21:22.000Z","dependencies_parsed_at":"2023-01-14T23:41:34.256Z","dependency_job_id":"864ee256-e2d6-49ec-a2e0-b449d1c51407","html_url":"https://github.com/jsmini/clone","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":"0.14893617021276595","last_synced_commit":"458993b792b3bfa96f4606b9663a7db69a45cd6a"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmini%2Fclone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmini%2Fclone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmini%2Fclone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmini%2Fclone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsmini","download_url":"https://codeload.github.com/jsmini/clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246030693,"owners_count":20712419,"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","clonedeep","deep","deep-clone","deepclone"],"created_at":"2024-07-31T19:01:18.444Z","updated_at":"2025-03-28T12:32:18.420Z","avatar_url":"https://github.com/jsmini.png","language":"JavaScript","readme":"# [clone](https://github.com/jsmini/clone)\n\n[![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/clone/blob/master/LICENSE)\n[![CI](https://github.com/jsmini/clone/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/clone/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/badge/npm-0.6.0-orange.svg)](https://www.npmjs.com/package/@jsmini/clone)\n[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/clone.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/clone)\n[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/clone.svg)](http://isitmaintained.com/project/jsmini/clone 'Percentage of issues still open')\n\n最专业的深拷贝库\n\n[Engilsh](./README.md) | 简体中文\n\n## 兼容性\n\n单元测试保证支持如下环境：\n\n| IE  | CH  | FF  | SF  | OP  | IOS | 安卓 | Node  |\n| --- | --- | --- | --- | --- | --- | ---- | ----- |\n| 6+  | 23+ | 4+  | 6+  | 10+ | 5+  | 2.3+ | 0.10+ |\n\n## 目录介绍\n\n```\n.\n├── demo 使用demo\n├── dist 编译产出代码\n├── doc 项目文档\n├── src 源代码目录\n├── test 单元测试\n├── CHANGELOG.md 变更日志\n└── TODO.md 计划功能\n```\n\n## 如何使用\n\n通过npm下载安装代码\n\n```bash\n$ npm install --save @jsmini/clone\n```\n\n如果你是node环境\n\n```js\nvar name = require('@jsmini/clone').name;\n```\n\n如果你是webpack等环境\n\n```js\nimport { name } from '@jsmini/clone';\n```\n\n如果你是requirejs环境\n\n```js\nrequirejs(\n  ['node_modules/@jsmini/clone/dist/index.aio.js'],\n  function (jsmini_clone) {\n    var name = jsmini_clone.name;\n  },\n);\n```\n\n如果你是浏览器环境\n\n```html\n\u003cscript src=\"node_modules/@jsmini/clone/dist/index.aio.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  var name = jsmini_clone.name;\n\u003c/script\u003e\n```\n\n## 文档\n\n- [API](https://github.com/jsmini/clone/blob/master/doc/api.md)\n- [深拷贝的终极探索](https://yanhaijing.com/javascript/2018/10/10/clone-deep/)\n\n## 贡献指南 ![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)\n\n首次运行需要先安装依赖\n\n```bash\n$ npm install\n```\n\n一键打包生成生产代码\n\n```bash\n$ npm run build\n```\n\n运行单元测试，浏览器环境需要手动测试，位于`test/browser`\n\n```bash\n$ npm test\n```\n\n修改package.json中的版本号，修改README.md中的版本号，修改CHANGELOG.md，然后发布新版\n\n```bash\n$ npm run release\n```\n\n将新版本发布到npm\n\n```bash\n$ npm publish --access=public\n```\n\n重命名项目名称，首次初始化项目时需要修改名字，或者后面项目要改名时使用，需要修改`rename.js`中的`fromName`和`toName`，会自动重命名下面文件中的名字\n\n- README.md 中的信息\n- package.json 中的信息\n- config/rollup.js 中的信息\n- test/browser/index.html 中的仓库名称\n\n```bash\n$ npm run rename # 重命名命令\n```\n\n## 贡献者列表\n\n[contributors](https://github.com/jsmini/clone/graphs/contributors)\n\n## 更新日志\n\n[CHANGELOG.md](https://github.com/jsmini/clone/blob/master/CHANGELOG.md)\n\n## 计划列表\n\n[TODO.md](https://github.com/jsmini/clone/blob/master/TODO.md)\n\n## 谁在使用\n","funding_links":["https://yanhaijing.com/mywallet/"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmini%2Fclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsmini%2Fclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmini%2Fclone/lists"}