Socket
Socket
Sign inDemoInstall

camel-case

Package Overview
Dependencies
1
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    camel-case

Camel case a string


Version published
Weekly downloads
17M
decreased by-1.45%
Maintainers
1
Install size
7.46 kB
Created
Weekly downloads
 

Package description

What is camel-case?

The camel-case npm package is a utility for converting strings into camelCase text. It is often used in programming environments where camelCase is the standard naming convention for identifiers, such as in JavaScript. This package can be particularly useful for formatting strings received from different sources (like user input or external APIs) to match the camelCase naming convention used in a codebase.

What are camel-case's main functionalities?

Convert string to camelCase

This feature allows you to convert any string, including phrases with spaces or special characters, into camelCase. It's useful for standardizing text input for variable names, object keys, or any other identifiers in code.

const { camelCase } = require('camel-case');

const result = camelCase('hello world');
console.log(result); // 'helloWorld'

Other packages similar to camel-case

Readme

Source

camel-case

Camel case a string.

Installation

npm install camel-case --save

Usage

var camelCase = require('camel-case');

sentenceCase('string');    //=> "string"
sentenceCase('dot.case');  //=> "dotCase"
sentenceCase('PascalCase'); //=> "pascalCase"

License

MIT

Keywords

FAQs

Last updated on 24 Mar 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc