</>PackageGraphPackageGraph

decamelize

npmv6.0.1TypeScript

Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow

Adopt with care

decamelize is usable, with caveats. Last published 386 days ago.

  • AAdoption: grade A, Excellent.

    62.6M downloads per week and 4 known dependents.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 386 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 6.8 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 decamelize 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.

6.8 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 ^12.20.0 || ^14.13.1 || >=16.0.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the decamelize README.

import decamelize from 'decamelize';

decamelize('unicornRainbow');
//=> 'unicorn_rainbow'

decamelize('unicornRainbow', {separator: '-'});
//=> 'unicorn-rainbow'

decamelize('testGUILabel', {preserveConsecutiveUppercase: true});
//=> 'test_GUI_label'

decamelize('testGUILabel', {preserveConsecutiveUppercase: false});
//=> 'test_gui_label'

decamelize vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
decamelizethis page62.6M4MIT1 year ago
camelcase95.7M2MIT1 day ago
indent-string94M2MIT1 day ago
get-east-asian-width69.3M1MIT1 day ago
split-on-first9.7M1MIT1 day ago
index-to-position01MIT1 day ago

Dependencies

Declared by decamelize v6.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

ava ^5.0.1tsd ^0.24.1xo ^0.52.4

Used by

Popular packages that depend on decamelize.

Relationship graph

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

meow@wdio/utilsedgedrivergeckodriverdecamelize
decamelize dependencies dependents

Frequently installed together

Release history

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

Recent versions of decamelize
VersionPublishedSizeLicense
6.0.1latest1 year ago6.8 KBMIT
6.0.05 years ago6.7 KBMIT
5.0.15 years ago6.7 KBMIT
5.0.05 years ago6.6 KBMIT
4.0.06 years ago3.9 KBMIT
3.2.07 years ago4.2 KBMIT
3.1.17 years ago3.9 KBMIT
3.1.07 years ago3.9 KBMIT
3.0.07 years ago3.7 KBMIT
2.0.08 years agoMIT
1.2.010 years agoMIT
1.1.210 years agoMIT
1.1.111 years agoMIT
1.1.011 years agoMIT
1.0.011 years agoMIT

Overview

decamelize is an npm package that convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow. It is extremely widely used, with about 62.6M downloads per week and 4 known dependents in the graph. The latest version is 6.0.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow 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 (62.6M 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 decamelize?

decamelize is usable, with caveats. Last published 386 days ago.

How do I install decamelize?

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

What license is decamelize released under?

decamelize is distributed under the MIT license.

How popular is decamelize?

decamelize has approximately 62,561,758 downloads per week and 4 known dependent packages.

Is decamelize still maintained?

The most recent release of decamelize (v6.0.1) was published 1 year ago.

Does decamelize run install scripts?

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