
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
tiny-clean-object
Advanced tools
A tiny and fast utility to clean deep object
npm install tiny-clean-object
import {cleanObject} from 'tiny-clean-object';
const object = {
a: 'ok',
b: 123,
c: null,
d: undefined,
e: NaN,
f: Infinity,
g: {
deep: 'ok',
deep2: {
obj: {},
arr: [],
empty: '',
},
deep3: null,
deep4: NaN,
},
h: [],
i: {},
k: '',
};
cleanObject(object, {deep: true, emptyObjects: true});
{
"a": "ok",
"b": 123,
"g": {
"deep": "ok",
"deep2": {
"arr": []
}
},
"h": []
}
| Option | Default value | Description |
|---|---|---|
| deep | false | Recursive. Clean deep object |
| skipNull | false | Skip keys with null as the value |
| emptyStrings | true | Remove empty strings, ie: '' |
| emptyInvalidNumbers | true | Remove NaN and Infinity |
| emptyArrays | false | Remove empty arrays, ie: [] |
| emptyObjects | false | Remove empty objects, ie: {} |
MIT
FAQs
A tiny and fast utility to clean deep object
The npm package tiny-clean-object receives a total of 311 weekly downloads. As such, tiny-clean-object popularity was classified as not popular.
We found that tiny-clean-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.