{"id":16534548,"url":"https://github.com/risen228/deep-omit","last_synced_at":"2025-04-04T20:43:50.033Z","repository":{"id":57211774,"uuid":"186253202","full_name":"risen228/deep-omit","owner":"risen228","description":"Recursively omit the specified key or keys from an object","archived":false,"fork":false,"pushed_at":"2020-01-19T13:09:45.000Z","size":150,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T23:37:12.067Z","etag":null,"topics":["deep","delete","javascript","node","nodejs","object","omit","remove"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/risen228.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-05-12T12:39:39.000Z","updated_at":"2022-07-23T12:29:02.000Z","dependencies_parsed_at":"2022-09-08T17:01:49.026Z","dependency_job_id":null,"html_url":"https://github.com/risen228/deep-omit","commit_stats":null,"previous_names":["risenforces/deep-omit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risen228%2Fdeep-omit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risen228%2Fdeep-omit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risen228%2Fdeep-omit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risen228%2Fdeep-omit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/risen228","download_url":"https://codeload.github.com/risen228/deep-omit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249600,"owners_count":20908211,"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":["deep","delete","javascript","node","nodejs","object","omit","remove"],"created_at":"2024-10-11T18:24:31.647Z","updated_at":"2025-04-04T20:43:49.996Z","avatar_url":"https://github.com/risen228.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deep-omit\n\n[![npm](https://img.shields.io/npm/v/deep-omit.svg)](https://www.npmjs.com/package/deep-omit)\n[![Travis (.com)](https://img.shields.io/travis/com/risenforces/deep-omit.svg)](https://travis-ci.com/risenforces/deep-omit)\n\nRecursively omit the specified key or keys from an object.\n\n## Installation\n\nInstall with [npm](https://www.npmjs.com)\n\n```sh\nnpm install deep-omit\n```\n\n## Usage\n\n```js\nconst omit = require(\"deep-omit\")\n```\n\n**omit a value:**\n\n```js\nconst obj = { one: 1, two: 2 }\nomit(obj, 'one')\n// or\nomit(obj, ['one'])\n// result: { two: 2 }\n```\n\n**omit a nested value:**\n\n```js\nconst obj = { one: 1, nested: { two: 2 } }\nomit(obj, 'nested.two')\n// result: { one: 1, nested: {} }\n```\n\n**omit multiple values:**\n\n```js\nconst obj = { one: 1, two: 2, nested: { two: 2 } }\nomit(obj, ['one', 'two'])\n// result: { nested: { two: 2 } }\n// note that it didn't delete 'nested.two' how any other 'omit' library doing\n```\n\n**works with array as well:**\n\n```js\nconst arr = ['one', 'two', 'three']\nomit(arr, 1)\n// or\nomit(arr, ['1'])\n// result: ['one', 'three']\n```\n\n**and with nested arrays:**\n\n```js\nconst arr = ['one', 'two', ['three']]\nomit(arr, ['2.0'])\n// result: ['one', 'two', []]\n```\n\n## Running tests\n\n```sh\nnpm i \u0026\u0026 npm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisen228%2Fdeep-omit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisen228%2Fdeep-omit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisen228%2Fdeep-omit/lists"}