{"id":16925146,"url":"https://github.com/hiroppy/convert-keys","last_synced_at":"2026-03-06T02:48:09.691Z","repository":{"id":66361360,"uuid":"74491915","full_name":"hiroppy/convert-keys","owner":"hiroppy","description":"Convert object keys to camelCase or snakeCase.","archived":false,"fork":false,"pushed_at":"2020-10-09T09:59:27.000Z","size":163,"stargazers_count":19,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T17:16:47.821Z","etag":null,"topics":[],"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/hiroppy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2016-11-22T16:30:20.000Z","updated_at":"2023-01-17T21:29:38.000Z","dependencies_parsed_at":"2023-02-22T12:46:13.379Z","dependency_job_id":null,"html_url":"https://github.com/hiroppy/convert-keys","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hiroppy/convert-keys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fconvert-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fconvert-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fconvert-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fconvert-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiroppy","download_url":"https://codeload.github.com/hiroppy/convert-keys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fconvert-keys/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265344866,"owners_count":23750570,"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":[],"created_at":"2024-10-13T20:08:55.676Z","updated_at":"2026-03-06T02:48:04.649Z","avatar_url":"https://github.com/hiroppy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# convert-keys\n\n[![Build Status](https://travis-ci.org/hiroppy/convert-keys.svg?branch=master)](https://travis-ci.org/hiroppy/convert-keys)\n[![codecov](https://codecov.io/gh/hiroppy/convert-keys/branch/master/graph/badge.svg)](https://codecov.io/gh/hiroppy/convert-keys)\n[![npm version](https://badge.fury.io/js/convert-keys.svg)](https://badge.fury.io/js/convert-keys)\n\n# Install\n```\n$ npm install convert-keys\n```\n\n# Usage\n```javascript\nconst convertKeys = require('convert-keys');\n\nconst obj = {\n  'hoge_fuga': 1,\n  hogeHoge: {\n    'piyo_piyo': 'aaaa',\n    'fuga_fuga': 'bbbb'\n  }\n};\n\nconvertKeys.toCamel(obj);\n\n// output\n{\n  hogeFuga: 1,\n  hogeHoge: {\n    piyoPiyo: 'aaaa',\n    fugaFuga: 'bbbb'\n  }\n}\n\nconvertKeys.toSnake(obj);\n\n// output\n{\n  'hoge_fuga': 1,\n  'hoge_hoge': {\n    'piyo_piyo': 'aaaa',\n    'fuga_fuga': 'bbbb'\n  }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fconvert-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiroppy%2Fconvert-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fconvert-keys/lists"}