{"id":22616367,"url":"https://github.com/xpepermint/object-keys-normalizer","last_synced_at":"2025-04-11T12:23:36.704Z","repository":{"id":57312648,"uuid":"91192612","full_name":"xpepermint/object-keys-normalizer","owner":"xpepermint","description":"Deeply normalizes object keys (included nested objects and objects in arrays) to the format of your choosing.","archived":false,"fork":false,"pushed_at":"2023-02-10T03:27:53.000Z","size":129,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T21:08:23.231Z","etag":null,"topics":["camelcase","keys","lowercase","nodejs","normalization","normalize","object","snakecase","uppercase"],"latest_commit_sha":null,"homepage":null,"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/xpepermint.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-13T17:49:29.000Z","updated_at":"2024-06-19T04:01:45.692Z","dependencies_parsed_at":"2024-06-19T04:01:35.043Z","dependency_job_id":"abc75894-dba4-4d37-a002-137ca0f0661c","html_url":"https://github.com/xpepermint/object-keys-normalizer","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"f3b4583096598720391cb9b4214d3e616f2127fa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fobject-keys-normalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fobject-keys-normalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fobject-keys-normalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fobject-keys-normalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xpepermint","download_url":"https://codeload.github.com/xpepermint/object-keys-normalizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401379,"owners_count":21097328,"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":["camelcase","keys","lowercase","nodejs","normalization","normalize","object","snakecase","uppercase"],"created_at":"2024-12-08T19:12:17.094Z","updated_at":"2025-04-11T12:23:36.684Z","avatar_url":"https://github.com/xpepermint.png","language":"TypeScript","readme":"![Build Status](https://travis-ci.org/xpepermint/object-keys-normalizer.svg?branch=master)\u0026nbsp;[![NPM Version](https://badge.fury.io/js/object-keys-normalizer.svg)](https://badge.fury.io/js/object-keys-normalizer)\u0026nbsp;[![Dependency Status](https://gemnasium.com/xpepermint/object-keys-normalizer.svg)](https://gemnasium.com/xpepermint/object-keys-normalizer)\n\n# object-keys-normalizer\n\n\u003e Deeply normalizes object keys (included nested objects and objects in arrays) to the format of your choosing.\n\nYou can find similar NPM packages on the internet but this module is different because it updates only the keys and leaves the values (e.g. number, buffer) untouched.\n\nThis is a light weight open source package for the **server** and **browser** (using module bundler) written with  [TypeScript](https://www.typescriptlang.org). The source code is available on [GitHub](https://github.com/xpepermint/object-keys-normalizer) where you can also find our [issue tracker](https://github.com/xpepermint/object-keys-normalizer/issues).\n\n## Installation\n\nRun the command below to install the package.\n\n```\nnpm install --save object-keys-normalizer\n```\n\n## Example\n\n```js\nimport { normalizeKeys } from 'object-keys-normalizer';\n\nconst data = {\n  first_name: \"John\",\n  lastName: \"Smith\",\n};\n\nnormalizeKeys(data, \"camel\"); // =\u003e { firstName: \"John\", lastName: \"Smith\" }\nnormalizeKeys(data, \"sname\"); // =\u003e { first_name: \"John\", last_name: \"Smith\" }\nnormalizeKeys(data, \"lower\"); // =\u003e { first_name: \"John\", lastname: \"Smith\" }\nnormalizeKeys(data, \"upper\"); // =\u003e { FIRST_NAME: \"John\", LASTNAME: \"Smith\" }\nnormalizeKeys(data, (k) =\u003e k.toLowerCase()); // =\u003e { first_name: \"John\", lastname: \"Smith\" }\n```\n\n## License (MIT)\n\n```\nCopyright (c) 2016+ Kristijan Sedlak \u003cxpepermint@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated modelation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpepermint%2Fobject-keys-normalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxpepermint%2Fobject-keys-normalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpepermint%2Fobject-keys-normalizer/lists"}