{"id":15793858,"url":"https://github.com/14f3v/obj-to-camel","last_synced_at":"2026-05-10T16:37:50.014Z","repository":{"id":225490826,"uuid":"766119155","full_name":"14f3v/obj-to-camel","owner":"14f3v","description":"This is a TypeScript function that converts object keys from snake_case to camelCase.","archived":false,"fork":false,"pushed_at":"2024-04-10T17:28:07.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T22:27:44.805Z","etag":null,"topics":["camelcase","conversion","javascript","library","snakecase-to-camelcase","typescript"],"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/14f3v.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-02T11:48:27.000Z","updated_at":"2024-03-06T02:47:01.000Z","dependencies_parsed_at":"2024-03-02T13:57:46.196Z","dependency_job_id":"aeb24c0a-4ec6-4936-9210-bf78ce2a73b5","html_url":"https://github.com/14f3v/obj-to-camel","commit_stats":null,"previous_names":["14f3v/obj-to-camel"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/14f3v/obj-to-camel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14f3v%2Fobj-to-camel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14f3v%2Fobj-to-camel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14f3v%2Fobj-to-camel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14f3v%2Fobj-to-camel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/14f3v","download_url":"https://codeload.github.com/14f3v/obj-to-camel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14f3v%2Fobj-to-camel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32864082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","conversion","javascript","library","snakecase-to-camelcase","typescript"],"created_at":"2024-10-04T23:21:29.198Z","updated_at":"2026-05-10T16:37:49.982Z","avatar_url":"https://github.com/14f3v.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obj-to-camel\nThis is a TypeScript function that converts object keys from snake_case to camelCase.\n\n## Installation\n\nYou can install this function via bun/yarn/npm:\n\nincase of using [bun.sh](https://bun.sh)\n```bash\nbun add git+https://github.com/14f3v/obj-to-camel.git\n```\n\n\nincase of using yarn\n```bash\nyarn add git+https://github.com/14f3v/obj-to-camel.git\n```\n\n\nincase of using npm\n```bash\nnpm install git+https://github.com/14f3v/obj-to-camel.git\n```\n\n## Usage\n\n```typescript\nimport objToCamel from '@14f3v/obj-to-camel';\n\nconst originalObject = {\n    FULL_NAME: \"foo\",\n    FAMILY_NAME: \"bar\",\n};\n\nconst camelCasedObject = objToCamel(originalObject);\n\nconsole.log(camelCasedObject);\n/* // ? return object would be\ncamelCasedObject: {\n    fullName: \"foo\",\n    familyName: \"bar\",\n}\n*/\n```\n### Support for nested object\n```typescript\nimport objToCamel from '@14f3v/obj-to-camel';\n\nconst originalObject = {\n    FULL_NAME: \"foo\",\n    FAMILY_NAME: \"bar\",\n    IDENTITY: {\n        HOLDER_NAME: \"foo\",\n        HOLDER_SURNAME: \"bar\",\n    },\n};\n\nconst camelCasedObject = objToCamel(originalObject);\n\nconsole.log(camelCasedObject);\n/* // ? return object would be\ncamelCasedObject: {\n    fullName: \"foo\",\n    familyName: \"bar\",\n    identity: {\n        holderName: \"foo\",\n        holderSurname: \"bar\",\n    },\n}\n```\n\n## Function Signature\n```typescript\nfunction keysToCamel\u003cT extends Record\u003cstring, any\u003e\u003e(\n    obj: T\n): { [K in keyof T as CamelCase\u003cK \u0026 string\u003e]: T[K] };\n```\nThis function takes an object with string keys and returns a new object with camelCase keys.\n\n## Contributing\nContributions are welcome! Feel free to submit issues and pull requests.\n\n### Feedback and Suggestions\nIf you have any questions, feedback, or suggestions, please open an issue on the repository. We're open to discussions and appreciate any input you may have.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE]() file for details.\n\n\nFeel free to customize the content according to your project's needs and guidelines. A clear and welcoming contribution section can help foster a collaborative and inclusive community around your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F14f3v%2Fobj-to-camel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F14f3v%2Fobj-to-camel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F14f3v%2Fobj-to-camel/lists"}