{"id":28195568,"url":"https://github.com/rohmanhm/ox","last_synced_at":"2025-05-16T14:13:42.534Z","repository":{"id":42695879,"uuid":"223530470","full_name":"rohmanhm/ox","owner":"rohmanhm","description":"A Javascript utility to clean objects recursively, deleting undefined \u0026 null or falsy properties.","archived":false,"fork":false,"pushed_at":"2023-01-07T21:53:56.000Z","size":1202,"stargazers_count":4,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T03:45:26.094Z","etag":null,"topics":["object","ox","purifyobj","typescript","utils"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohmanhm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-23T04:27:56.000Z","updated_at":"2025-04-14T17:51:08.000Z","dependencies_parsed_at":"2023-02-08T02:32:29.957Z","dependency_job_id":null,"html_url":"https://github.com/rohmanhm/ox","commit_stats":null,"previous_names":["rohmanhm/purify-obj"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohmanhm","download_url":"https://codeload.github.com/rohmanhm/ox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544130,"owners_count":22088808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["object","ox","purifyobj","typescript","utils"],"created_at":"2025-05-16T14:13:42.452Z","updated_at":"2025-05-16T14:13:42.521Z","avatar_url":"https://github.com/rohmanhm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rohmanhm/ox\n\n\u003e A Javascript utility to clean objects recursively, deleting undefined \u0026 null or falsy properties.\n\n## Install\n\n```\n$ npm install @rohmanhm/ox\n```\n\nOr\n\n```\n$ yarn add @rohmanhm/ox\n```\n\n## Usage\n\n```js\nimport ox from '@rohmanhm/ox';\n// Or\nconst ox = require('@rohmanhm/ox').default;\n\nconst object = {\n  className: 'only-this-obj-key-will-persist',\n  disabled: '',\n  autoComplete: false,\n  checked: undefined,\n  spellCheck: null,\n};\nconst newObject = ox(object);\n//=\u003e {className: 'only-this-obj-key-will-persist'}\n```\n\n## API\n\n### ox(source, strict)\n\n#### source\n\nType: `object`\n\nSource object to clean properties from.\n\n#### strict\n\nType: `boolean`\nDefault: `true`\nStrict will clean all falsy key\n\n## Local Development\n\nBelow is a list of commands you will probably find useful.\n\n### `npm start` or `yarn start`\n\nRuns the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.\n\nYour library will be rebuilt if you make edits.\n\n### `npm run build` or `yarn build`\n\nBundles the package to the `dist` folder.\nThe package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).\n\n### `npm test` or `yarn test`\n\nRuns the test watcher (Jest) in an interactive mode.\nBy default, runs tests related to files changed since the last commit.\n\n## Related\n\n- [clean-obj](https://github.com/ricardofbarros/clean-obj) - Clean objects recursively, deleting undefined \u0026 null or falsy properties.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohmanhm%2Fox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohmanhm%2Fox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohmanhm%2Fox/lists"}