# @borderless/assign

> Tiny, opinionated deep assign implementation

Latest version **1.1.1** (published 2021-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @borderless/assign
pnpm add @borderless/assign
yarn add @borderless/assign
bun add @borderless/assign
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-02-14 |
| First published | 2021-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 33.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | assign, deep, recursive, merge, push, typescript |

## Links

- npm: https://www.npmjs.com/package/@borderless/assign
- Repository: https://github.com/borderless/assign
- Issues: https://github.com/borderless/assign/issues
- npm.io page: https://npm.io/package/@borderless/assign

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-02-14

## README

# Assign

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

> Tiny, opinionated deep assign implementation.

## Installation

```sh
npm install @borderless/assign --save
```

## Usage

```js
import { assign } from "@borderless/assign";

// Merges objects.
assign({ a: 10 }, { b: 10 }); //=> { a: 10, b: 10 }

// Deep merge of objects.
assign({ a: { b: true }, { a: { c: false } }); //=> { a: { b: true, c: false } }

// Pushes to arrays, overwrites primitives.
assign({ a: 10, b: [1] }, { a: 20, b: [2, 3] }); //=> { a: 20, b: [1, 2, 3] }
```

## License

MIT

[npm-image]: https://img.shields.io/npm/v/@borderless/assign.svg?style=flat
[npm-url]: https://npmjs.org/package/@borderless/assign
[downloads-image]: https://img.shields.io/npm/dm/@borderless/assign.svg?style=flat
[downloads-url]: https://npmjs.org/package/@borderless/assign
[travis-image]: https://img.shields.io/travis/borderless/assign.svg?style=flat
[travis-url]: https://travis-ci.org/borderless/assign
[coveralls-image]: https://img.shields.io/coveralls/borderless/assign.svg?style=flat
[coveralls-url]: https://coveralls.io/r/borderless/assign?branch=master

---
_Source: https://npm.io/package/@borderless/assign · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
