{"id":13508543,"url":"https://github.com/justmoon/node-extend","last_synced_at":"2025-05-13T22:03:47.126Z","repository":{"id":2953801,"uuid":"3967764","full_name":"justmoon/node-extend","owner":"justmoon","description":"Simple function to extend objects","archived":false,"fork":false,"pushed_at":"2025-03-06T18:47:41.000Z","size":136,"stargazers_count":341,"open_issues_count":0,"forks_count":68,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-03T02:01:41.089Z","etag":null,"topics":[],"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/justmoon.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":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-04-08T23:56:11.000Z","updated_at":"2025-03-06T18:47:44.000Z","dependencies_parsed_at":"2024-02-26T01:49:21.881Z","dependency_job_id":"8ad1fd75-8674-4e40-a7e5-885e2f31e2e6","html_url":"https://github.com/justmoon/node-extend","commit_stats":{"total_commits":177,"total_committers":14,"mean_commits":"12.642857142857142","dds":"0.22598870056497178","last_synced_commit":"7a3c01e38d3e0f21c4a744ec1b6a3f829030a36a"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmoon%2Fnode-extend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmoon%2Fnode-extend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmoon%2Fnode-extend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmoon%2Fnode-extend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justmoon","download_url":"https://codeload.github.com/justmoon/node-extend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284912,"owners_count":20913691,"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":[],"created_at":"2024-08-01T02:00:54.579Z","updated_at":"2025-04-10T04:47:16.494Z","avatar_url":"https://github.com/justmoon.png","language":"JavaScript","readme":"# extend() for Node.js \u003csup\u003e[![Version Badge][npm-version-svg]][npm-url]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][npm-url]\n\n`node-extend` is a port of the classic extend() method from jQuery. It behaves as you expect. It is simple, tried and true.\n\nNotes:\n\n* Since Node.js \u003e= 4,\n  [`Object.assign`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\n  now offers the same functionality natively (but without the \"deep copy\" option).\n  See [ECMAScript 2015 (ES6) in Node.js](https://nodejs.org/en/docs/es6).\n* Some native implementations of `Object.assign` in both Node.js and many\n  browsers (since NPM modules are for the browser too) may not be fully\n  spec-compliant.\n  Check [`object.assign`](https://www.npmjs.com/package/object.assign) module for\n  a compliant candidate.\n\n## Installation\n\nThis package is available on [npm][npm-url] as: `extend`\n\n``` sh\nnpm install extend\n```\n\n## Usage\n\n**Syntax:** extend **(** [`deep`], `target`, `object1`, [`objectN`] **)**\n\n*Extend one object with one or more others, returning the modified object.*\n\n**Example:**\n\n``` js\nvar extend = require('extend');\nextend(targetObject, object1, object2);\n```\n\nKeep in mind that the target object will be modified, and will be returned from extend().\n\nIf a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s).\nUndefined properties are not copied. However, properties inherited from the object's prototype will be copied over.\nWarning: passing `false` as the first argument is not supported.\n\n### Arguments\n\n* `deep` *Boolean* (optional)\nIf set, the merge becomes recursive (i.e. deep copy).\n* `target`\t*Object*\nThe object to extend.\n* `object1`\t*Object*\nThe object that will be merged into the first.\n* `objectN` *Object* (Optional)\nMore objects to merge into the first.\n\n## License\n\n`node-extend` is licensed under the [MIT License][mit-license-url].\n\n## Acknowledgements\n\nAll credit to the jQuery authors for perfecting this amazing utility.\n\nPorted to Node.js by [Stefan Thomas][github-justmoon] with contributions by [Jonathan Buchanan][github-insin] and [Jordan Harband][github-ljharb].\n\n[npm-url]: https://npmjs.org/package/extend\n[npm-version-svg]: https://versionbadg.es/justmoon/node-extend.svg\n[npm-badge-png]: https://nodei.co/npm/extend.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/extend.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/extend.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=extend\n[codecov-image]: https://codecov.io/gh/justmoon/node-extend/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/justmoon/node-extend/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/justmoon/node-extend\n[actions-url]: https://github.com/justmoon/node-extend/actions\n[github-justmoon]: https://github.com/justmoon\n[github-insin]: https://github.com/insin\n[github-ljharb]: https://github.com/ljharb\n[mit-license-url]: http://opensource.org/licenses/MIT\n","funding_links":[],"categories":["JavaScript","Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustmoon%2Fnode-extend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustmoon%2Fnode-extend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustmoon%2Fnode-extend/lists"}