{"_id":"@a4sex/params-pruner","_rev":"4-83948df4596a860ad89f2fe6553a7fb6","name":"@a4sex/params-pruner","dist-tags":{"latest":"1.0.10"},"versions":{"1.0.6":{"name":"@a4sex/params-pruner","description":"Prune empty query params","type":"module","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc","test":"jasmine --config=tests/config/jasmine.json"},"keywords":["empty","query","params"],"author":{"name":"tebaly","email":"support@freedomsex.net"},"license":"GPL-3.0-or-later","dependencies":{"@types/underscore":"^1.11.5","typescript":"^5.1.6","underscore":"^1.10.2"},"devDependencies":{"jasmine":"^5.0.2"},"version":"1.0.6","types":"./dist/index.d.ts","gitHead":"7b8c92039034a5a502876c770484992cf6e9ce95","_id":"@a4sex/params-pruner@1.0.6","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-mHTQiOZROJkbWW+4e5NghWNvHjdsLlqRaL7oGXtvNpz1UTP3UWvuXDipydMZkSn7VRCrxLOOnG7K8Ls0ilmi+A==","shasum":"219a8f5613c896681aeb7febd6bc82430a40b2a3","tarball":"https://registry.npmjs.org/@a4sex/params-pruner/-/params-pruner-1.0.6.tgz","fileCount":3,"unpackedSize":1291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKcc3lEzyvnfbwMJYxYE3UERkJ0GFpjmRSZEBT0shQIAiEAh0xyI0+kbMY2HVRn9Nj+zNdoTXLrdne6rhmc0e7AWns="}]},"_npmUser":{"name":"tebaly","email":"support@freedomsex.net"},"directories":{},"maintainers":[{"name":"tebaly","email":"support@freedomsex.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/params-pruner_1.0.6_1688896238085_0.1324207863009732"},"_hasShrinkwrap":false},"1.0.7":{"name":"@a4sex/params-pruner","description":"Prune empty query params","type":"module","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc","test":"jasmine --config=tests/config/jasmine.json"},"keywords":["empty","query","params"],"author":{"name":"tebaly","email":"support@freedomsex.net"},"license":"GPL-3.0-or-later","dependencies":{"@types/underscore":"^1.11.5","typescript":"^5.1.6","underscore":"^1.10.2"},"devDependencies":{"jasmine":"^5.0.2"},"version":"1.0.7","types":"./dist/index.d.ts","gitHead":"159600b6baac17b9d558d1c754ebe8e4199bca21","_id":"@a4sex/params-pruner@1.0.7","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-YM2t3bxtG33PnC/0W8m4E4Hgr2anQkvsf3ZGq19DgcbztiiDTdC3wZqlL4aTVJsWB/j705KsPa7WGq5kEkI9MQ==","shasum":"d31d88c2cde806871855c444886debda8cc1078d","tarball":"https://registry.npmjs.org/@a4sex/params-pruner/-/params-pruner-1.0.7.tgz","fileCount":3,"unpackedSize":1308,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiHb95beJulH5VFL23F1ZrO9ne4fWYO1oAoy8OMqoAFQIhAKy+sh9vnD5iySDk/tE+FZ7U5IF20b0du58FUUnhs1fQ"}]},"_npmUser":{"name":"tebaly","email":"support@freedomsex.net"},"directories":{},"maintainers":[{"name":"tebaly","email":"support@freedomsex.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/params-pruner_1.0.7_1688896413537_0.3264621324277581"},"_hasShrinkwrap":false},"1.0.8":{"name":"@a4sex/params-pruner","description":"Prune empty query params","type":"module","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc","test":"jasmine --config=tests/config/jasmine.json"},"keywords":["empty","query","params"],"author":{"name":"tebaly","email":"support@freedomsex.net"},"license":"GPL-3.0-or-later","repository":{"type":"git","url":"git+ssh://git@gitlab.com/a4sex/npm/library/params-pruner.git"},"dependencies":{"@types/underscore":"^1.11.5","typescript":"^5.1.6","underscore":"^1.10.2"},"devDependencies":{"jasmine":"^5.0.2"},"version":"1.0.8","types":"./dist/index.d.ts","gitHead":"f4b0976a1d3e6a69ef4ae6367ea3e3df9eb080eb","bugs":{"url":"https://gitlab.com/a4sex/npm/library/params-pruner/issues"},"homepage":"https://gitlab.com/a4sex/npm/library/params-pruner#readme","_id":"@a4sex/params-pruner@1.0.8","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-u2H+y5N3M1RQz4pDF2YNJdImtxVDO4NnzL2OzVC8b47JFY+O2DXpz2d8bjfhnbixNWOvxVpsjyt+lDkEnx4f+A==","shasum":"1bedbdd30b9ef30f41e658d4ba4b1584365422c7","tarball":"https://registry.npmjs.org/@a4sex/params-pruner/-/params-pruner-1.0.8.tgz","fileCount":3,"unpackedSize":1424,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqIOCraLtfK9IAPkAYoLqdYjiPqtmovicsVzp4FpmR3AIgSzJoc6oGZ6AS/klmFUrgittd0omLQmB7DVD01c09QWI="}]},"_npmUser":{"name":"tebaly","email":"support@freedomsex.net"},"directories":{},"maintainers":[{"name":"tebaly","email":"support@freedomsex.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/params-pruner_1.0.8_1688896535700_0.9465295018399082"},"_hasShrinkwrap":false},"1.0.9":{"name":"@a4sex/params-pruner","description":"Prune empty query params","type":"module","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc","test":"jasmine --config=tests/config/jasmine.json"},"keywords":["empty","query","params"],"author":{"name":"tebaly","email":"support@freedomsex.net"},"license":"GPL-3.0-or-later","repository":{"type":"git","url":"git+ssh://git@gitlab.com/a4sex/npm/library/params-pruner.git"},"dependencies":{"@types/underscore":"^1.11.5","typescript":"^5.1.6","underscore":"^1.10.2"},"devDependencies":{"jasmine":"^5.0.2"},"version":"1.0.9","types":"./dist/index.d.ts","gitHead":"889541c532505d0c0ab84ebc56133983361aca3e","bugs":{"url":"https://gitlab.com/a4sex/npm/library/params-pruner/issues"},"homepage":"https://gitlab.com/a4sex/npm/library/params-pruner#readme","_id":"@a4sex/params-pruner@1.0.9","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-Z6i5yyv4s3FXUpeROCdHIc25x7UGNy6RfiGNEVMKCYm/TASEj6WQMd/e1q2elMGOPVfKVuPGyl1z6hkrUV2DQQ==","shasum":"e3e5817ca31b6ea6da872f5ad5878f01112d6893","tarball":"https://registry.npmjs.org/@a4sex/params-pruner/-/params-pruner-1.0.9.tgz","fileCount":4,"unpackedSize":2232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCeCAbKnFyJZ7Jn+kSDqdimcxt1OaGcI/Pbc8cQ2QvwwIhAIj8ZYSDiT78y0Rfjdi6vrJArGHXYjAfPy5Fr49jZFsF"}]},"_npmUser":{"name":"tebaly","email":"support@freedomsex.net"},"directories":{},"maintainers":[{"name":"tebaly","email":"support@freedomsex.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/params-pruner_1.0.9_1688897230951_0.5334139918020546"},"_hasShrinkwrap":false},"1.0.10":{"name":"@a4sex/params-pruner","description":"Prune empty query params","type":"module","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc","test":"jasmine --config=tests/config/jasmine.json"},"keywords":["empty","query","params"],"author":{"name":"tebaly","email":"support@freedomsex.net"},"license":"GPL-3.0-or-later","repository":{"type":"git","url":"git+ssh://git@gitlab.com/a4sex/npm/library/params-pruner.git"},"dependencies":{"@types/underscore":"^1.11.5","typescript":"^5.1.6","underscore":"^1.10.2"},"devDependencies":{"jasmine":"^5.0.2"},"version":"1.0.10","types":"./dist/index.d.ts","gitHead":"57b30fa946887fd40e36e42a0372747b587f93dc","bugs":{"url":"https://gitlab.com/a4sex/npm/library/params-pruner/issues"},"homepage":"https://gitlab.com/a4sex/npm/library/params-pruner#readme","_id":"@a4sex/params-pruner@1.0.10","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-kJhH8yT2F02Ke2Mo49wZL3aa/T0EDz5fbdUz3FsDY1MR8y1CycwHUqGhsi4zkQLpxcDZXLlN5H7Vf2eXNQSHXA==","shasum":"dcbd962b28650b15a37074c754045b72f9330228","tarball":"https://registry.npmjs.org/@a4sex/params-pruner/-/params-pruner-1.0.10.tgz","fileCount":4,"unpackedSize":2632,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlk9rDpqLsfB10wwoxU/83RSljfNhFaE+u+Gfpi3ayyAiEAyjvGSMxZp1+lN24L1y8Btkh3wvHsutDKOaqADCXFxac="}]},"_npmUser":{"name":"tebaly","email":"support@freedomsex.net"},"directories":{},"maintainers":[{"name":"tebaly","email":"support@freedomsex.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/params-pruner_1.0.10_1688897821617_0.03269833557117563"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-09T09:50:37.993Z","1.0.6":"2023-07-09T09:50:38.241Z","modified":"2023-07-09T10:17:02.120Z","1.0.7":"2023-07-09T09:53:33.674Z","1.0.8":"2023-07-09T09:55:35.862Z","1.0.9":"2023-07-09T10:07:11.103Z","1.0.10":"2023-07-09T10:17:01.884Z"},"maintainers":[{"name":"tebaly","email":"support@freedomsex.net"}],"description":"Prune empty query params","keywords":["empty","query","params"],"author":{"name":"tebaly","email":"support@freedomsex.net"},"license":"GPL-3.0-or-later","readme":"# Params pruner\n\nA lightweight NPM package that provides a single function, prune, which removes all empty values from an object, including empty strings, null, NaN, and undefined, across all nested levels.Additionally, it preserves boolean fields with a value of false in the pruned object.\n\nThis means that boolean fields with a value of false will not be considered empty and will be retained in the pruned object. Only values that fall under the empty criteria (empty strings, null, NaN, and undefined) will be removed.\n\n## Usage\n\nTo use the prune function, import it into your project. The prune function takes a single parameter, which should be an object. It removes all empty values from the object recursively and returns the pruned object.\n\n```js\n\nimport prune from '@a4sex/params-pruner';\n\nlet object = {\n  value: 1,\n  empty: '',\n  null: null,\n  nan: NaN,\n  defined: undefined,\n  boolean: false,\n  inline: {\n    value: 1,\n    empty: '',\n    null: null,\n    nan: NaN,\n    defined: undefined,\n    boolean: false,\n  }\n};\n\nconst result = prune(object);\n\nconsole.log(result);\n// Output: { \n//   value: 1, \n//   boolean: false,\n//   inline: { \n//     value: 1 \n//     boolean: false,\n//   } \n// }\n\n```\n","readmeFilename":"README.md","homepage":"https://gitlab.com/a4sex/npm/library/params-pruner#readme","repository":{"type":"git","url":"git+ssh://git@gitlab.com/a4sex/npm/library/params-pruner.git"},"bugs":{"url":"https://gitlab.com/a4sex/npm/library/params-pruner/issues"}}