Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

camel-case

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Issues
File Explorer

Advanced tools

camel-case

Transform into a string with the separator denoted by the next word capitalized

    4.1.2latest

Version published
Maintainers
1
Weekly downloads
17,173,736
increased by5.26%

Weekly downloads

Readme

Source

Camel Case

NPM version NPM downloads Bundle size

Transform into a string with the separator denoted by the next word capitalized.

Installation

npm install camel-case --save

Usage

import { camelCase } from "camel-case"; camelCase("string"); //=> "string" camelCase("dot.case"); //=> "dotCase" camelCase("PascalCase"); //=> "pascalCase" camelCase("version 1.2.10"); //=> "version_1_2_10"

The function also accepts options.

Merge Numbers

If you'd like to remove the behavior prefixing _ before numbers, you can use camelCaseTransformMerge:

import { camelCaseTransformMerge } from "camel-case"; camelCase("version 12", { transform: camelCaseTransformMerge }); //=> "version12"

License

MIT

Keywords

FAQs

What is camel-case?

Transform into a string with the separator denoted by the next word capitalized

Is camel-case popular?

The npm package camel-case receives a total of 14,432,076 weekly downloads. As such, camel-case popularity was classified as popular.

Is camel-case well maintained?

We found that camel-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 02 Dec 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc