{"name":"omit-empty","description":"Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/omit-empty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/omit-empty.git"},"bugs":{"url":"https://github.com/jonschlinkert/omit-empty/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/omit-empty/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"has-values":"^0.1.2","isobject":"^1.0.0","reduce-object":"^0.1.3"},"devDependencies":{"mocha":"*","should":"^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"],"gitHead":"4c7d2124b864da68ceb61dc301957b5fbfb0e592","_id":"omit-empty@0.3.1","_shasum":"5d57b085758f2045239073d53ee7878f996ee560","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5d57b085758f2045239073d53ee7878f996ee560","tarball":"http://registry-npm.ywwl.com/omit-empty/download/omit-empty-0.3.1.tgz","integrity":"sha512-NjCQthWNkUuqJcz4AHuspFYur42MCTHgIuCVnoY+OEN1mHSMmgL3EHX5RIGi1+mplphkkX/W7b0Fg/nTuYgUHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoN11c1VvCzTvy9dxevvfyRPm4oBb0Hc4iyvWpFELU/QIgLvn3O80sNCm8Gv0CFGeAYkuU1hLGKzQpjqhQUyPR8v0="}],"size":2168,"noattachment":false,"key":"/omit-empty/-/omit-empty-0.3.1.tgz"},"directories":{},"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":1427249839333,"_cnpm_publish_time":1427249839333,"dist-tags":{"latest":"1.0.0"}}