Socket
Socket
Sign inDemoInstall

to-camel-case

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-camel-case

Converts a string to camelCase


Version published
Weekly downloads
505K
increased by0.61%
Maintainers
1
Weekly downloads
 
Created

What is to-camel-case?

The 'to-camel-case' npm package is a utility that converts strings to camel case. Camel case is a naming convention where the first letter of each word is capitalized except for the first word, and spaces or punctuation are removed.

What are to-camel-case's main functionalities?

Convert string with spaces to camel case

This feature converts a string with spaces into camel case format.

const toCamelCase = require('to-camel-case');
const result = toCamelCase('hello world');
console.log(result); // 'helloWorld'

Convert string with hyphens to camel case

This feature converts a string with hyphens into camel case format.

const toCamelCase = require('to-camel-case');
const result = toCamelCase('hello-world');
console.log(result); // 'helloWorld'

Convert string with underscores to camel case

This feature converts a string with underscores into camel case format.

const toCamelCase = require('to-camel-case');
const result = toCamelCase('hello_world');
console.log(result); // 'helloWorld'

Convert string with mixed delimiters to camel case

This feature converts a string with mixed delimiters (spaces, hyphens, underscores) into camel case format.

const toCamelCase = require('to-camel-case');
const result = toCamelCase('hello-world_example');
console.log(result); // 'helloWorldExample'

Other packages similar to to-camel-case

Keywords

FAQs

Package last updated on 06 Apr 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc