{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"email":"wtgtybhertgeghgtwtg@gmail.com","url":"https://github.com/wtgtybhertgeghgtwtg"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^2.0.2","isobject":"^4.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"*","should":"*"},"keywords":["del","delete","key","object","omit","prop","property","remove","unset","value"],"verb":{"related":{"list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"856b97b72c377374f43349557b90fa6e5dd671a1","_id":"unset-value@2.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-hhaWKXRLy35kYyMpl4FkmSfHGh5PLSE9QqE3jxqDBxhHiIm2+sZkisg69/IL6MIkTcMZ8mCR1PgOIZRuWlvhZg==","shasum":"97f65b60a86cdd40d7371d4c933ad27212ee3f9c","tarball":"http://registry-npm.ywwl.com/unset-value/download/unset-value-2.0.0.tgz","fileCount":5,"unpackedSize":9600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUyhKCRA9TVsSAnZWagAALQYP/jc6Z3lTB1G1MeYwjnau\nbtDoPW+dLwkqY5149wxit0iPmlBqYFb3IHoLOb4D8lkH2YP/89NgxKWABA5b\n8TmXK+NR9d5izDDw+CuDmtoD05gGhOfqR/7OOpnGwinlytgSGRKb0B/TR4V4\n0g4Wm3j+tBHE0/vDIMyXy0siOj3JlBlYWPTzDFFWEGyzeeCF1hh9WBu2AnSG\n+hA3cG2UEbNymU1Di4Kg0+wMOw01SJ9xwQXq/QNJYbInASiO7MJlu3T+77NB\nBvesUYDLz164Q7/lbCQGuvJOm3CMBT+3XMOnIS9Qx/zZuGgMaQUvfoINMS8G\nXNFYjWoRB24WhrITM17ml1w3jc3SUewV6Uhgdt89SUJgkp/tykoM6M19/quP\nmSwDLkHhh1uZmDkcvHfGv7rGjypAKMTFSaUoYskz5q5UHW72RviiiSoWz3sJ\nZS6ILDz/myF8B7KmyWC3ikMtjLXzK+saFmXurD3ARmvgeomA0OertD1YtUKo\nKTDRMwSVOEtRjipTs56onHxmgOt0oFsbnJEDFlhbm4upnX1PvYUIDUZxTtFP\nFVqH1fJ/tHfM7LzPzc0nfWXNcv8NOJ25RS8v2dS9yRqboF29eImhDkcOzt2/\nNwyzPUGfs+z4mNLiBEFoF2hXy6wensO81VCB0QwjISPOWEEfPwslZzVQ1Hl7\nXSv3\r\n=fwuW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEM7ka6ghRmPIUHbcOOfWkKvKmCs/ycoKMAD3gGwSSBQAiEAw7CUv8KadHrYYyMnPjjh/74btOmaa1q9lblFqI7HpGg="}],"size":3575,"noattachment":false,"key":"/unset-value/-/unset-value-2.0.0.tgz"},"_npmUser":{"name":"danez","email":"daniel@tschinder.de"},"directories":{},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"danez","email":"daniel@tschinder.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unset-value_2.0.0_1616062538379_0.3028235666357879"},"_hasShrinkwrap":false,"readme":"# unset-value [![NPM version](https://img.shields.io/npm/v/unset-value.svg?style=flat)](https://www.npmjs.com/package/unset-value) [![NPM monthly downloads](https://img.shields.io/npm/dm/unset-value.svg?style=flat)](https://npmjs.org/package/unset-value) [![NPM total downloads](https://img.shields.io/npm/dt/unset-value.svg?style=flat)](https://npmjs.org/package/unset-value) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/unset-value.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/unset-value) \n\n> Delete nested properties from an object using dot notation.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save unset-value\n```\n\n## Usage\n\n```js\nvar unset = require('unset-value');\nunset(obj, prop);\n```\n\n### Params\n\n* `obj` **{object}**: The object to unset `prop` on\n* `prop` **{string | string[]}**: The property to unset. Dot-notation may be used or an array of nested properties.\n\n## Examples\n\n### Updates the object when a property is deleted\n\n```js\nvar obj = {a: 'b'};\nunset(obj, 'a');\nconsole.log(obj);\n//=> {}\n```\n\n### Returns true when a property is deleted\n\n```js\nunset({a: 'b'}, 'a') // true\n```\n\n### Returns `true` when a property does not exist\n\nThis is consistent with `delete` behavior in that it does not\nthrow when a property does not exist.\n\n```js\nunset({a: {b: {c: 'd'}}}, 'd') // true\n```\n\n### delete nested values\n\n```js\nvar one = {a: {b: {c: 'd'}}};\nunset(one, 'a.b');\nconsole.log(one);\n//=> {a: {}}\n\nvar two = {a: {b: {c: 'd'}}};\nunset(two, ['a', 'b', 'c']);\nconsole.log(two);\n//=> {a: {b: {}}}\n\nvar three = {a: {b: {c: 'd', e: 'f'}}};\nunset(three, 'a.b.c');\nconsole.log(three);\n//=> {a: {b: {e: 'f'}}}\n```\n\n### throws on invalid args\n\n```js\nunset();\n// 'expected an object.'\n```\n\n## About\n<details>\n  <summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n  <summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n  <summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects: \n\n- [get-value](https://www.npmjs.com/package/get-value): Use property paths like 'a.b.c' to get a nested value from an object. Even works… [more](https://github.com/jonschlinkert/get-value) | [homepage](https://github.com/jonschlinkert/get-value \"Use property paths like 'a.b.c' to get a nested value from an object. Even works when keys have dots in them (no other dot-prop library can do this!).\")\n- [get-values](https://www.npmjs.com/package/get-values): Return an array of all values from the given object. | [homepage](https://github.com/jonschlinkert/get-values \"Return an array of all values from the given object.\")\n- [omit-value](https://www.npmjs.com/package/omit-value): Omit properties from an object or deeply nested property of an object using object path… [more](https://github.com/jonschlinkert/omit-value) | [homepage](https://github.com/jonschlinkert/omit-value \"Omit properties from an object or deeply nested property of an object using object path notation.\")\n- [put-value](https://www.npmjs.com/package/put-value): Update only existing values from an object, works with dot notation paths like `a.b.c` and… [more](https://github.com/tunnckocore/put-value#readme) | [homepage](https://github.com/tunnckocore/put-value#readme \"Update only existing values from an object, works with dot notation paths like `a.b.c` and support deep nesting.\")\n- [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value \"Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.\")\n- [union-value](https://www.npmjs.com/package/union-value): Set an array of unique values as the property of an object. Supports setting deeply… [more](https://github.com/jonschlinkert/union-value) | [homepage](https://github.com/jonschlinkert/union-value \"Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.\")\n- [upsert-value](https://www.npmjs.com/package/upsert-value): Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/doowb/upsert-value \"Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths.\")  \n\n### Contributors\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 11 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 4  | [danez](https://github.com/danez) |  \n| 2  | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |  \n| 1  | [TrySound](https://github.com/TrySound) |  \n| 1  | [bluelovers](https://github.com/bluelovers) |  \n\n### Author\n**Jon Schlinkert**\n+ [GitHub Profile](https://github.com/jonschlinkert)\n+ [Twitter Profile](https://twitter.com/jonschlinkert)\n+ [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\nCopyright © 2021, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 18, 2021._\n\n","publish_time":1616062538516,"_cnpm_publish_time":1616062538516,"dist-tags":{"latest":"2.0.1"}}