{"id":24455564,"url":"https://github.com/nixjs/objectify","last_synced_at":"2025-12-28T17:45:48.871Z","repository":{"id":62810041,"uuid":"561616079","full_name":"nixjs/objectify","owner":"nixjs","description":"A tiny object utility","archived":false,"fork":false,"pushed_at":"2022-11-04T06:49:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T17:51:13.804Z","etag":null,"topics":["compact","compact-objects","javascript","merge","merge-objects","objectify","omit","pick","typescript","web","website"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nixjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-04T04:40:47.000Z","updated_at":"2022-11-04T06:50:44.000Z","dependencies_parsed_at":"2022-11-07T03:30:33.833Z","dependency_job_id":null,"html_url":"https://github.com/nixjs/objectify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fobjectify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fobjectify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fobjectify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixjs%2Fobjectify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixjs","download_url":"https://codeload.github.com/nixjs/objectify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544668,"owners_count":20308168,"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":["compact","compact-objects","javascript","merge","merge-objects","objectify","omit","pick","typescript","web","website"],"created_at":"2025-01-21T02:13:44.896Z","updated_at":"2025-12-28T17:45:43.851Z","avatar_url":"https://github.com/nixjs.png","language":"TypeScript","readme":"# @nixjs23n6/objectify\n\nA tiny object utility.\n\n## Quick Setup\n\n### Install\n\n`yarn add @nixjs23n6/objectify`\n\n### Usage\n\n#### Rename keys\n\n```typescript\nconst obj = { id: 'toto_id', name: 'toto', age: 35 }\nconst keys = { id: 'value', name: 'label' }\n\nrenameKeys(keys, obj)\n// { \"value\": \"toto_id\", \"label\": \"toto\", \"age\": 35 } \n```\n\n#### Merge\n\n```typescript\nconst obj1 = {\n  a: null,\n  b: false,\n  c: true\n};\nconst obj2 = {\n  k: \"demo\"\n};\n\nmerge(obj1, obj2);\n// { a:null, b: false, c: true, k: \"demo\" }\n```\n\n#### Omit\n\n```typescript\nconst obj = {\n  a: null,\n  b: false,\n  c: true\n};\n\nomit(obj, ['a','b']);\n// { c: true }\n```\n\n#### Pick\n\n```typescript\nconst obj = {\n  a: null,\n  b: false,\n  c: true\n};\n\npick(obj, ['a','b']);\n// { a: null, b: false }\n```\n\n#### Compact\n\n```typescript\nconst obj = {\n  a: null,\n  b: false,\n  c: true,\n  d: 0,\n  e: 1,\n  f: '',\n  g: 'a',\n  h: [null, false, '', true, 1, 'a'],\n  i: { j: 0, k: false, l: 'a' }\n};\n\ncompact(obj);\n// { c: true, e: 1, g: 'a', h: [ true, 1, 'a' ], i: { l: 'a' } }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixjs%2Fobjectify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixjs%2Fobjectify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixjs%2Fobjectify/lists"}