New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xtend

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xtend

extend like a boss

4.0.2
latest
Source
npm
Version published
Weekly downloads
34M
0.83%
Maintainers
1
Weekly downloads
 
Created

What is xtend?

The xtend npm package is a utility for shallowly copying all properties from one or more source objects to a new object. It is useful for extending objects without modifying the original object, making it ideal for configurations, options, and default settings manipulation.

What are xtend's main functionalities?

Extending an object

This feature allows you to combine properties from one or more source objects into a new object. The properties from the source objects are copied into the new object, with later sources' properties overwriting earlier ones.

var extend = require('xtend');
var object = extend({key1: 'value1'}, {key2: 'value2'});
console.log(object);

Other packages similar to xtend

Keywords

extend

FAQs

Package last updated on 08 Jul 2019

Did you know?

Socket

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