Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
lodash.camelcase
Advanced tools
The lodash.camelcase npm package is a utility function from the Lodash library, specifically designed to convert strings into camelCase format. This is useful in programming environments where camelCase is a standard naming convention, such as in JavaScript for variable and function names.
String Conversion to camelCase
Converts strings with spaces, dashes, underscores, or mixed separators to camelCase format, which is a common requirement in various coding standards and practices.
const _ = require('lodash.camelcase');
console.log(_.camelCase('FOO BAR')); // 'fooBar'
console.log(_.camelCase('--foo-bar--')); // 'fooBar'
console.log(_.camelCase('__FOO_BAR__')); // 'fooBar'
A comprehensive toolkit for converting text between different cases, including camel case. It offers more extensive features compared to lodash.camelcase, such as converting to snake case, pascal case, path case, and more, making it versatile for various text manipulation needs.
This package is similar to lodash.camelcase but is a standalone utility that focuses solely on converting strings to camelCase. It is lightweight and does not depend on the larger lodash library, which might be preferable for projects where minimizing dependency size is crucial.
The lodash method _.camelCase
exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.camelcase
In Node.js:
var camelCase = require('lodash.camelcase');
See the documentation or package source for more details.
FAQs
The lodash method `_.camelCase` exported as a module.
The npm package lodash.camelcase receives a total of 9,599,407 weekly downloads. As such, lodash.camelcase popularity was classified as popular.
We found that lodash.camelcase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.