</>PackageGraphPackageGraph

camelcase

npmv9.0.0TypeScript

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

Safe to adopt

Yes — camelcase scores well across adoption, maintenance, weight, supply chain, and licensing. 95.7M downloads per week and 2 known dependents. Last published 303 days ago.

  • AAdoption: grade A, Excellent.

    95.7M downloads per week and 2 known dependents.

  • BMaintenance: grade B, Good.

    Last published 303 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 17 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding camelcase to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

17 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=20
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the camelcase README.

import camelCase from 'camelcase';

camelCase('foo-bar');
//=> 'fooBar'

camelCase('foo_bar');
//=> 'fooBar'

camelCase('Foo-Bar');
//=> 'fooBar'

camelCase('розовый_пушистый_единорог');
//=> 'розовыйПушистыйЕдинорог'
Example truncated — see the full README.

camelcase vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
camelcasethis page95.7M2MIT10 months ago
decamelize62.6M4MIT1 day ago
split-on-first9.7M1MIT1 day ago
indent-string94M2MIT1 day ago
get-east-asian-width69.3M1MIT1 day ago
index-to-position01MIT1 day ago

Dependencies

Declared by camelcase v9.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

ava ^6.4.1tsd ^0.33.0xo ^1.2.3

Used by

Popular packages that depend on camelcase.

Relationship graph

Dependencies (left) and dependents (right) of camelcase.

jest-validate@istanbuljs/load-…camelcase
camelcase dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 155 days apart.

Recent versions of camelcase
VersionPublishedSizeLicense
9.0.0latest10 months ago17 KBMIT
8.0.03 years ago11 KBMIT
7.0.13 years ago11 KBMIT
7.0.04 years ago11 KBMIT
6.3.04 years ago11 KBMIT
6.2.14 years ago11 KBMIT
6.2.05 years ago10 KBMIT
6.1.06 years ago9.0 KBMIT
6.0.06 years ago7.2 KBMIT
5.3.17 years ago7.3 KBMIT
5.3.07 years ago7.3 KBMIT
5.2.07 years ago6.3 KBMIT
5.1.07 years ago5.8 KBMIT
5.0.08 years ago5.0 KBMIT
4.1.09 years agoMIT

Overview

camelcase is an npm package that convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`. It is extremely widely used, with about 95.7M downloads per week and 2 known dependents in the graph. The latest version is 9.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar` and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (95.7M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use camelcase?

Yes — camelcase scores well across adoption, maintenance, weight, supply chain, and licensing. 95.7M downloads per week and 2 known dependents. Last published 303 days ago.

How do I install camelcase?

Run `npm install camelcase` to add camelcase to your npm project.

What license is camelcase released under?

camelcase is distributed under the MIT license.

How popular is camelcase?

camelcase has approximately 95,655,369 downloads per week and 2 known dependent packages.

Is camelcase still maintained?

The most recent release of camelcase (v9.0.0) was published 10 months ago.

Does camelcase run install scripts?

No. camelcase does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.