Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

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
15,600,133
decreased by-4.16%

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 12,486,018 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. It has 1 open source maintainer collaborating on the project.

Last updated on 02 Dec 2020
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