{"id":22828721,"url":"https://github.com/busterc/casing","last_synced_at":"2025-04-23T16:24:50.713Z","repository":{"id":22979351,"uuid":"26329543","full_name":"busterc/casing","owner":"busterc","description":":wrench: Recursively transform object key strings to and from camelCase and snake_case","archived":false,"fork":false,"pushed_at":"2019-01-24T20:23:59.000Z","size":62,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T08:08:41.092Z","etag":null,"topics":["camelcase","json-serialization","snake-case"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/busterc.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":"2014-11-07T17:13:25.000Z","updated_at":"2023-10-21T16:47:38.000Z","dependencies_parsed_at":"2022-08-21T07:40:40.650Z","dependency_job_id":null,"html_url":"https://github.com/busterc/casing","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fcasing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fcasing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fcasing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fcasing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/busterc","download_url":"https://codeload.github.com/busterc/casing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228940295,"owners_count":17995066,"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","json-serialization","snake-case"],"created_at":"2024-12-12T19:11:53.931Z","updated_at":"2024-12-12T19:11:54.631Z","avatar_url":"https://github.com/busterc.png","language":"JavaScript","readme":"# casing\n\n\u003e Recursively transform object key strings to and from camelCase and snake_case.\n\n- Supports objects, arrays and a combination of both in any depth.\n- Was originally intended for use with BookShelf and Knex.\n\n## Installation\n\n```sh\n$ npm install casing\n```\n\n## Usage\n\n```javascript\n'use strict';\nvar casing = require('casing');\n\nvar wasCamel = {\n  objId: 123,\n  myName: 'Slim Shady'\n};\nconsole.log(casing.snakeize(wasCamel));\n// =\u003e { obj_id: 123, my_name: 'Slim Shady' }\n\nvar was_snake = {\n  obj_id: 456,\n  my_name: 'fiddycent'\n};\nconsole.log(casing.camelize(was_snake));\n// =\u003e { objId: 456, myName: 'fiddycent' }\n```\n\n### TypeScript\n\nThis package includes a definition file for TypeScript.\n\n```ts\nimport { camelize, snakeize } from 'casing';\n\nvar wasCamel = { objId: 123 };\nsnakeize(wasCamel);\n\nvar was_snake = { obj_id: 456 };\ncamelize(was_snake);\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fcasing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusterc%2Fcasing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fcasing/lists"}