# domchristie/humps

🐫 Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript.

Repository: https://github.com/domchristie/humps
Canonical: https://ross.abutalabs.com/products/humps
Language: JavaScript
License Family: other
Archived: true
Last push: 2023-10-12T17:56:37+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5113, "days_push": 1056, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1414, forks 100 (observed 2026-08-28T04:04:39.626683+00:00)

## What it is
Humps is a small JavaScript utility library that converts strings and object keys between snake_case (underscore) and camelCase, recursively handling nested objects and arrays. It is commonly used to bridge JSON between JavaScript clients and Ruby/Rails-style APIs.

## Use cases
- convert snake_case JSON keys to camelCase in JavaScript
- convert camelCase object keys to snake_case before sending to a Rails API
- recursively transform nested object keys' casing
- camelize or decamelize individual strings
- customize case conversion with separators or per-key callbacks

## When to choose
- you need to reconcile snake_case backend payloads with camelCase JavaScript conventions
- you want a tiny, dependency-free key-casing converter with callback customization

## When to avoid
- you need an actively maintained library - the project is explicitly unmaintained
- you need case conversion outside JavaScript/Node
- you need deep object transformation beyond key casing

## Facets
- artifact type: library
- maturity: abandoned
- function: serialization, parser, developer-tools
- domain: developer-tools, web-development, apis
- platform: browser
- tags: camelcase, case-conversion, json-keys, ruby-on-rails, unmaintained, nodejs, javascript

## Member repositories
- domchristie/humps (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.626683+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:12.661373+00:00, confidence not recorded.
  - readme: https://github.com/domchristie/humps (fetched 2026-08-28T04:04:39.626683+00:00, sha acd3eb58adf5)
  - registry_npm: https://registry.npmjs.org/humps (fetched 2026-08-29T11:51:11.266944+00:00, sha 2101e9a3debf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
