Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-camel-case

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-camel-case

Convert a string to camel case.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
513K
decreased by-2.4%
Maintainers
2
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 21 Jan 2016

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