
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
camel-case
Advanced tools
Transform into a string with the separator denoted by the next word capitalized
Transform into a string with the separator denoted by the next word capitalized.
npm install camel-case --save
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.
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"
MIT
change-case is a comprehensive string transformation library that includes camelCase among many other case transformations. It provides more extensive functionality compared to camel-case, which focuses solely on camel casing.
param-case is another package from the same family as camel-case, designed for converting strings into kebab-case (or param-case). While it serves a different specific case conversion, it is similar in its simplicity and focus.
snake-case converts strings to snake_case. Like camel-case, it is focused on a specific string transformation, making it similar in its targeted functionality but different in the type of casing it applies.
FAQs
Transform into a string with the separator denoted by the next word capitalized
The npm package camel-case receives a total of 18,482,283 weekly downloads. As such, camel-case popularity was classified as popular.
We found that camel-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Research
/Security News
Malicious Rust crate evm-units disguised as an EVM version helper downloads and silently executes OS-specific payloads likely aimed at crypto theft.