
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
converting-case
Advanced tools
This module is used to convert cases.
npm install converting-case
//NodeJS
const convert = require("converting-case");
console.log("camelCase", convert.camelCase("Test String Demo")); //camelCase testStringDemo
console.log("constantCase", convert.constantCase("Test String Demo")); //constantCase TEST_STRING_DEMO
console.log("dotCase", convert.dotCase("Test String Demo")); //dotCase test.string.demo
console.log("headerCase", convert.headerCase("Test String Demo")); //headerCase Test-String-Demo
console.log("paramCase", convert.paramCase("Test String Demo")); //paramCase test-string-demo
console.log("pascalCase", convert.pascalCase("Test String Demo")); //pascalCase TestStringDemo
console.log("pathCase", convert.pathCase("Test String Demo")); //pathCase test/string/demo
console.log("sentenceCase", convert.sentenceCase("Test String Demo")); //sentenceCase Test string demo
console.log("snakeCase", convert.snakeCase("Test String Demo")); //snakeCase test_string_demo
console.log("swapCase", convert.swapCase("Test String Demo")); //swapCase tEST sTRING dEMO
console.log("titleCase", convert.titleCase("Test String Demo")); //titleCase Test String Demo
console.log("upperCase", convert.upperCase("Test String Demo")); //upperCase TEST STRING DEMO
console.log("lowerCase", convert.lowerCase("Test String Demo")); //lowerCase test string demo
//Browser
import {
camelCase,
constantCase,
dotCase,
headerCase,
paramCase,
pascalCase,
pathCase,
sentenceCase,
snakeCase,
swapCase,
titleCase,
upperCase,
lowerCase
} from "converting-case";
console.log("camelCase", camelCase("Test String Demo")); //camelCase testStringDemo
console.log("constantCase", constantCase("Test String Demo")); //constantCase TEST_STRING_DEMO
console.log("dotCase", dotCase("Test String Demo")); //dotCase test.string.demo
console.log("headerCase", headerCase("Test String Demo")); //headerCase Test-String-Demo
console.log("paramCase", paramCase("Test String Demo")); //paramCase test-string-demo
console.log("pascalCase", pascalCase("Test String Demo")); //pascalCase TestStringDemo
console.log("pathCase", pathCase("Test String Demo")); //pathCase test/string/demo
console.log("sentenceCase", sentenceCase("Test String Demo")); //sentenceCase Test string demo
console.log("snakeCase", snakeCase("Test String Demo")); //snakeCase test_string_demo
console.log("swapCase", swapCase("Test String Demo")); //swapCase tEST sTRING dEMO
console.log("titleCase", titleCase("Test String Demo")); //titleCase Test String Demo
console.log("upperCase", upperCase("Test String Demo")); //upperCase TEST STRING DEMO
console.log("lowerCase", lowerCase("Test String Demo")); //lowerCase test string demo
FAQs
This package is used to convert cases.
We found that converting-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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.