# del-value

> Delete deeply nested value from an object using dot notation like `a.b.c.x` and return the modified object if success, otherwise return original object.

Latest version **1.0.0** (published 2015-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install del-value
pnpm add del-value
yarn add del-value
bun add del-value
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-26 |
| First published | 2015-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Charlike Mike Reagent |
| Maintainers | tunnckocore |
| Keywords | del, delete, dot, dots, key, notation, omit, path, paths, prop, property, props, utils, val, value |

## Links

- npm: https://www.npmjs.com/package/del-value
- Repository: https://github.com/tunnckocore/del-value
- Homepage: https://github.com/tunnckocore/del-value#readme
- Issues: https://github.com/tunnckocore/del-value/issues
- npm.io page: https://npm.io/package/del-value

## Dependencies (2)

- [isobject](https://npm.io/package/isobject.md) ~1.0.0
- [get-value](https://npm.io/package/get-value.md) ~1.1.5

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-26
- 0.3.0 — 2015-06-24
- 0.2.0 — 2015-06-24
- 0.1.0 — 2015-06-24
- 0.0.0 — 2015-06-24

## README

# del-value [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] 

> Delete deeply nested value from an object using dot notation like `a.b.c.x` and return the modified object if success, otherwise return original object.

[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]


## Install
```
npm i del-value --save
npm test
```


## Usage
> For more use-cases see the [tests](./test.js)

```js
var del = require('del-value')

del({a: 'b'}, 'foo') //=> {a: 'b'}
del({a: 'b', c: 'd'}, 'c') //=> {a: 'b'}
del({a: 'b', c: {d: 'e'}}, 'c.d') //=> {a: 'b', c: {}}
del({a: 'b', c: {d: 'e'}}, 'c') //=> {a: 'b'}
del({a: 'b', c: {d: 'e', g: 'g'}}, 'c.d') //=> {a: 'b', c: {g: 'g'}}
```


## Related
- [always-callback](https://github.com/tunnckoCore/always-callback): Create callback api for given sync function. Guarantee that given function (sync or async, no matter) will always have callback api and will handle errors correctly.
- [make-callback](https://github.com/tunnckoCore/make-callback): Make synchronous function or generator to support callback api
- [set-value](https://github.com/jonschlinkert/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.
- [get-value](https://github.com/jonschlinkert/get-value): Use property paths (`a.b.c`) to get a nested value from an object.
- [has-value](https://github.com/jonschlinkert/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
- [del-values](https://github.com/tunnckoCore/del-values): Multiple delete deeply nested **values** from an object using dot notation `a.b.c`


## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/del-value/issues/new).  
But before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.


## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]

[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]


[npmjs-url]: https://www.npmjs.com/package/del-value
[npmjs-img]: https://img.shields.io/npm/v/del-value.svg?label=del-value

[license-url]: https://github.com/tunnckoCore/del-value/blob/master/LICENSE.md
[license-img]: https://img.shields.io/badge/license-MIT-blue.svg


[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/del-value
[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/del-value.svg

[travis-url]: https://travis-ci.org/tunnckoCore/del-value
[travis-img]: https://img.shields.io/travis/tunnckoCore/del-value.svg

[coveralls-url]: https://coveralls.io/r/tunnckoCore/del-value
[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/del-value.svg

[david-url]: https://david-dm.org/tunnckoCore/del-value
[david-img]: https://img.shields.io/david/tunnckoCore/del-value.svg

[standard-url]: https://github.com/feross/standard
[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg


[author-www-url]: http://www.tunnckocore.tk
[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg

[keybase-url]: https://keybase.io/tunnckocore
[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg

[author-npm-url]: https://www.npmjs.com/~tunnckocore
[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg

[author-twitter-url]: https://twitter.com/tunnckoCore
[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg

[author-github-url]: https://github.com/tunnckoCore
[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg

[freenode-url]: http://webchat.freenode.net/?channels=charlike
[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg

[new-message-url]: https://github.com/tunnckoCore/messages
[new-message-img]: https://img.shields.io/badge/send%20me-message-green.svg

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