{"name":"omit-empty","description":"Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.","version":"0.4.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","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"has-values":"^0.1.4","is-date-object":"^1.0.1","isobject":"^2.1.0","reduce-object":"^0.1.3"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"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":["for-in","for-own","is-plain-object","reduce-object"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"d08a0033a15d346857295f27860ab962f67d5c5b","_id":"omit-empty@0.4.0","_shasum":"467941f310868da3515b21ca5196d0398a7c908d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"467941f310868da3515b21ca5196d0398a7c908d","tarball":"http://registry-npm.ywwl.com/omit-empty/download/omit-empty-0.4.0.tgz","integrity":"sha512-cAo8KGdahmBAlyBsGlRDs/ahkZmOaRYHueRnSIai2v4rZ+9saaWbOS2djbofL+xfBB1oVqogclwVOoEhi/fEzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGA2UHAvb00AswH+d2rHzyF9f2e4W/XFxD/eFjSA3AerAiEAg1v4mrki8vTIiouiFaCC+4k53qqJbDulxVrSzrrRfSo="}],"size":1866,"noattachment":false,"key":"/omit-empty/-/omit-empty-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/omit-empty-0.4.0.tgz_1464804954864_0.9423537962138653"},"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":1464804957229,"_cnpm_publish_time":1464804957229,"dist-tags":{"latest":"1.0.0"}}