{"_id":"@0xa672/strip.ts","name":"@0xa672/strip.ts","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@0xa672/strip.ts","version":"0.0.1","description":"Recursively strip empty values from objects and arrays.","main":"dist/strip.js","types":"dist/strip.d.ts","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["strip","omit","empty","object","utils"],"author":{"name":"0xA672"},"license":"MIT","devDependencies":{"@types/node":"^25.6.0","typescript":"^5.0.0"},"gitHead":"50ab77c804660a25935c569135a4b7c26ad946dd","_id":"@0xa672/strip.ts@0.0.1","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-jdKuvi2mzVHsUWSrsxrPwE20MUwl7pXKs0S+aw76tFwN6X/G7TjSuUSbBq2lFP3SFaUmJm01Opi6IexAfhgYJA==","shasum":"d26ec4c16c1274abf1e555af0b706b4065483d03","tarball":"https://registry.npmjs.org/@0xa672/strip.ts/-/strip.ts-0.0.1.tgz","fileCount":5,"unpackedSize":3965,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDYRVKPS6HdBgCvgHjlITCKCTB4MbFr7sdFKE6roUxNeQIgL508mGWbgTnsCswSvlL6VmtiWv2ZIyRHGyeWvj83yHk="}]},"_npmUser":{"name":"0xa672","email":"Cero0xA672@outlook.com"},"directories":{},"maintainers":[{"name":"0xa672","email":"Cero0xA672@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strip.ts_0.0.1_1777029677520_0.03334611499129703"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-24T11:21:17.367Z","0.0.1":"2026-04-24T11:21:17.768Z","modified":"2026-04-24T11:21:18.065Z"},"maintainers":[{"name":"0xa672","email":"Cero0xA672@outlook.com"}],"description":"Recursively strip empty values from objects and arrays.","keywords":["strip","omit","empty","object","utils"],"author":{"name":"0xA672"},"license":"MIT","readme":"# strip.ts\n\nRecursively strip empty values from objects and arrays.\n\n[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white)](.)\n[![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?logo=javascript&logoColor=black)](.)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)\n\n## Install\n\n```shell\nnpm install @0xA672/strip.ts\n```\n\n```shell\nnpm install github:0xA672/strip.ts\n```\n\n```shell\nnpm install github:0xA672/strip.ts#main\n```\n\n```shell\n# or with bun\nbun install github:0xA672/strip.ts\n```\n\n## Usage\n\n```typescript\nimport { stripEmpties } from 'strip.ts';\n\nconst obj = {\n  name: 'test',\n  age: 0,\n  addr: '',\n  meta: {\n    tags: [],\n    extra: null,\n    note: 'hello',\n  },\n};\n\nconsole.log(stripEmpties(obj));\n// => { name: 'test', meta: { note: 'hello' } }\n\nconsole.log(stripEmpties(obj, { omitZero: true }));\n// => { name: 'test', meta: { note: 'hello' } }  (age removed)\n```\n\n## Options\n\n* omitZero (boolean): remove 0 values. Default false.\n","readmeFilename":"README.md","_rev":"1-3f98ef0a37f85c83f8f5242b8ecc2a65"}