Socket
Socket
Sign inDemoInstall

extend2

Package Overview
Dependencies
0
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    extend2

Port of jQuery.extend for Node.js


Version published
Weekly downloads
32K
decreased by-1.39%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

4.0.0 (2024-06-15)

⚠ BREAKING CHANGES

  • drop Node.js < 18.7.0 support

https://github.com/eggjs/egg/issues/5257

Features

  • override array as primitive when deep merge (#1) (00c66c0)
  • support cjs and esm both (#4) (378e295)

Bug Fixes

1.0.1 / 2021-12-31

fixes

1.0.0 / 2017-03-06

  • Initial commit

Readme

Source

extend2

Forked from node-extend, the difference is overriding array as primitive when deep clone.

NPM version Node.js CI Test coverage Known Vulnerabilities npm download

Usage

import { extend } from 'extend2';

// for deep clone
extend(true, {}, object1, objectN);

License

extend2 is licensed under the MIT License.

Acknowledgements

All credit to the jQuery authors for perfecting this amazing utility.

Ported to Node.js by Stefan Thomas with contributions by Jonathan Buchanan and Jordan Harband.

Contributors


ljharb


justmoon


jonmorehouse


popomore


greelgorke


andyburke


blaise-io


danbell


jamielinux


insin


madarche


Mithgol


fengmk2


2hu12

This project follows the git-contributor spec, auto updated at Sat Jun 15 2024 10:08:30 GMT+0800.

Keywords

FAQs

Last updated on 15 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc