{"name":"omit-empty","description":"Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/omit-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/omit-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/omit-empty/issues"},"license":"MIT","main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^6.0.2"},"devDependencies":{"gulp-format-md":"^2.0.0","mocha":"^5.2.0"},"keywords":["clear","delete","empty","find","has","hasown","javascript","js","key","keys","node","node-js","object","omit","properties","property","remove","util","utilities","utility","value"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["is-plain-object","isobject","kind-of"]},"lint":{"reflinks":true}},"gitHead":"e75ce8feb5da07473ee47c01fa40d68b83158031","_id":"omit-empty@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"integrity":"sha512-eaWd8kwqDyChgf7IYVyfZf2b9b9JOIhpAow4cegg8CVx29U2mZKgCvpfvOSeJctmRTqjGWTZeO2Us58ebDtQ4A==","shasum":"827ad1fdc569511bb9fb3f038a9171a7f10d9040","tarball":"http://registry-npm.ywwl.com/omit-empty/download/omit-empty-1.0.0.tgz","fileCount":5,"unpackedSize":10480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDm9JCRA9TVsSAnZWagAAXpAP/jfo7b/aiqUNWaOXryUk\nqr0/KwDCKuhnaNthE81AUdcbfktzzcZphVjaUTeOH2Mu+xAnwzRKLCDJdzqm\nPW8oU22k5qvljkptDsIEYo4NGVwK/fbo3tDBkIDxVVQlGlIB2HoVn1DJMhao\nWZM8WUxYmqPbQX9d16tbhNOdJX8GMXlE67kzUsmiF0p9T+QsurRnnD2ugKxc\nu1ydEFF9IyogTC/VgEveiK0jAAwVIoZ9krYVUEcIqDHOEVtzQonoGjGOAT5y\nmhmEkzicH6acjLhvATQIGnaBs+RzOXyoCuz8OhXE3LPGEC4SN0jPMnk0Alqf\nx80bIF3zEZ2bfTXqXKET2YnMzVIEUxod2nISq+8MmCnqjHyoVn8d8SCPkwMB\nbKsLgzviIieOsL3Zapjg/mkaOu8C8Pfd4mQKRJ8s5QRQpxsIOcPKY89Y6Dar\nNVqfoAku+bTktHh/pqShzEGDyoNldPoqpr403eGTd+tBfNU+UWPXfBRjo+39\nZv0BGdFuwH/GMCONpYm3bCvZxhkaqPwh01knP0oHoGyZ5a06Ung23MuZ425G\nfKkoquUSSCqY4XtmU04WHEcTRU255PMKQOvT9bpVK/Egh5GIHEC40zEnLEoo\nPK3MpcjgfAQwBbub8ejIrxzJOhtywHUvmDMPnvwd85DJPPO/XImB1Yq4yUY+\nY34z\r\n=ixgP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB0zjJGyaKQ4FVSI2wR1xoAFLBjrVersITmhTZWoqOiwIgZtUYmN4c2F2dH+7xkJD5as8UAaXxkKvk32zZAXu+tCc="}],"size":4055,"noattachment":false,"key":"/omit-empty/-/omit-empty-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit-empty_1.0.0_1544449864860_0.9778434352728214"},"_hasShrinkwrap":false,"readme":"# omit-empty [![NPM version](https://img.shields.io/npm/v/omit-empty.svg?style=flat)](https://www.npmjs.com/package/omit-empty) [![NPM monthly downloads](https://img.shields.io/npm/dm/omit-empty.svg?style=flat)](https://npmjs.org/package/omit-empty) [![NPM total downloads](https://img.shields.io/npm/dt/omit-empty.svg?style=flat)](https://npmjs.org/package/omit-empty) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/omit-empty.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/omit-empty)\n\n> Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.\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\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save omit-empty\n```\n\n## Heads up!\n\nBreaking changes in v1.0.0! See the [Release History](#CHANGELOG.md).\n\n## Usage\n\n```js\nconst omitEmpty = require('omit-empty');\n\nconsole.log(omitEmpty({ a: 'a', b: '' }));\n//=> { a: 'a' }\n\nconsole.log(omitEmpty({ a: 'a', b: { c: 'c', d: '' } }));\n//=> { a: 'a', b: { c: 'c' } }\n\nconsole.log(omitEmpty({ a: ['a'], b: [] }));\n//=> { a: ['a'] }\n\nconsole.log(omitEmpty({ a: 0, b: 1 }));\n//=> { a: 0, b: 1 }\n\n// set omitZero to true, to evaluate \"0\" as falsey\nconsole.log(omitEmpty({ a: 0, b: 1 }, { omitZero: true }));\n//=> { b: 1 }\n```\n\n## About\n\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* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object \"Returns true if an object was created by the `Object` constructor.\")\n* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject \"Returns true if the value is an object and not an array or null.\")\n* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of \"Get the native type of a value.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 31 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 1  | [kakadiadarpan](https://github.com/kakadiadarpan) |  \n\n### Author\n\n**Jon Schlinkert**\n\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\n\nCopyright © 2018, [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 December 10, 2018._","publish_time":1544449865041,"_cnpm_publish_time":1544449865041,"dist-tags":{"latest":"1.0.0"}}