{"id":20391077,"url":"https://github.com/compactjs/assign","last_synced_at":"2025-03-05T00:14:43.632Z","repository":{"id":38174704,"uuid":"254211609","full_name":"CompactJS/assign","owner":"CompactJS","description":"Recursive assign for objects and arrays","archived":false,"fork":false,"pushed_at":"2023-03-04T11:05:59.000Z","size":2550,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T02:04:12.275Z","etag":null,"topics":["arrays","assign","javascript","objects","recursive"],"latest_commit_sha":null,"homepage":null,"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/CompactJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-08T22:09:22.000Z","updated_at":"2021-04-19T11:12:06.000Z","dependencies_parsed_at":"2024-11-15T03:28:46.278Z","dependency_job_id":"f8584121-dff9-472d-a1f9-4a2271342092","html_url":"https://github.com/CompactJS/assign","commit_stats":{"total_commits":13,"total_committers":4,"mean_commits":3.25,"dds":0.6923076923076923,"last_synced_commit":"d3c49ab7e90cf9e8a280e347a0adf1522c302f7e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fassign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fassign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fassign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fassign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CompactJS","download_url":"https://codeload.github.com/CompactJS/assign/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940579,"owners_count":20045883,"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":["arrays","assign","javascript","objects","recursive"],"created_at":"2024-11-15T03:28:40.584Z","updated_at":"2025-03-05T00:14:43.613Z","avatar_url":"https://github.com/CompactJS.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e@compactjs/assign\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eRecursive assign for objects and arrays\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@compactjs/assign\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/@compactjs/assign.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CompactJS/assign/blob/main/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/CompactJS/assign\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  ·\n  \u003ca href=\"https://github.com/CompactJS/assign#readme\"\u003eHomepage\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/CompactJS/assign/issues\"\u003eReport Bug / Request Feature\u003c/a\u003e\n  ·\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Installation](#Install)\n- [Usage](#usage)\n- [Test](#run-tests)\n- [Contact](#contact)\n- [Contributing](#Contributing)\n- [License](#license)\n\n## Install\n\n### NPM:\n\n```sh\nnpm install @compactjs/assign\n```\n\n### CDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/@compactjs/assign/dist/index.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n### As module:\n\n```javascript\nimport { assign } from '@compactjs/assign';\n```\n\n### Example:\n\n```javascript\nconst target = {\n  boolean: true,\n  string: 'abc',\n  object: { number: 0, any: 0 },\n};\nconst source = ['34', 'abc', [14, 2]];\n\nassign(target, source);\n\nconsole.log(target);\n// prints:\n// {\n//   boolean: '34',\n//   string: 'abc',\n//   object: { number: 14, any: 2 },\n// }\n```\n\nCheck out the [index.test.js](https://github.com/CompactJS/assign/blob/main/test/index.test.js) file for more examples.\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Contact\n\n👤 **Timo Bechtel**\n\n- Website: https://timobechtel.com\n- Twitter: [@TimoBechtel](https://twitter.com/TimoBechtel)\n- GitHub: [@TimoBechtel](https://github.com/TimoBechtel)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003e\n\n1. Check [issues](https://github.com/CompactJS/assign/issues)\n1. Fork the Project\n1. Create your Feature Branch (`git checkout -b feat/AmazingFeature`)\n1. Test your changes `npm run test`\n1. Commit your Changes (`git commit -m 'feat: add amazingFeature'`)\n1. Push to the Branch (`git push origin feat/AmazingFeature`)\n1. Open a Pull Request\n\n### Commit messages\n\nThis project uses semantic-release for automated release versions. So commits in this project follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) guidelines. I recommend using [commitizen](https://github.com/commitizen/cz-cli) for automated commit messages.\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nDistributed under the [MIT](https://github.com/CompactJS/assign/blob/main/LICENSE) License.\n\n---\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompactjs%2Fassign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompactjs%2Fassign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompactjs%2Fassign/lists"}