camelcase

Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`

v9.0.0 MIT 28 versions Maintained by sindresorhus
  • camelcase
  • camel-case
  • camel
  • case
  • dash
  • hyphen
  • dot
  • underscore
  • separator
  • string
  • text
  • convert
Weekly downloads
120.9M -34%
vs previous week
Last 30 days
661.9M
Stars

Downloads

7.1B total · Sep 1, 2025 – Sep 1, 2026

Downloads by version

Last 7 days

Versions

28 releases published since Oct 30, 2013

Commit activity

Last 12 months

Contributors

Top 10

Issues