
Product
Introducing Reachability for PHP
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.
util-string-case
Advanced tools
string case testing and conversion: mixed snake case, screaming snake case, screaming dash case, screaming dot case, screaming slash case, snake case, dash case, dot case, slash case, camel case
Small utility library implementing string case testing and conversion: mixed snake case, screaming snake case, screaming dash case, screaming dot case, screaming slash case, screaming space case, snake case, dash case, dot case, slash case, space case, space caps case, camel case.
Case tests are done by pre-analyzing string content to make multiple tests for various case styles efficient.
Case Names:
camelCasePascalCasesnake_caseMixed_Snake_CaseSCREAMING_SNAKE_CASEdot.caseMixed.Dot.CaseSCREAMING.DOT.CASEdash-caseMixed-Dash-CaseSCREAMING-DASH-CASEslash/caseMixed/Slash/CaseSCREAMING/SLASH/CASEspace caseMixed Space CaseSCREAMING SPACE CASEdefines StringCase class which takes a string as construction argument and provides on the
instance:
Test original string for being of given case
.isMixedCamelCase().isMixedSnakeCase().isMixedDashCase().isMixedDotCase().isMixedSlashCase().isMixedSpaceCase().isScreamingSnakeCase().isScreamingDashCase().isScreamingDotCase().isScreamingSlashCase().isScreamingSpaceCase().isSnakeCase().isDashCase().isDotCase().isSlashCase().isSpaceCase().isCapitalizedSpaceCase().hasNoUpperCase().hasNoLowerCase().hasUpperCase().hasLowerCase().hasLowerCaseOrUpperCase().isLowerCase().isUpperCase().isCamelCase().isPascalCase()Test if can convert original string to given case
.canBeMixedSnakeCase().canBeScreamingSnakeCase().canBeSnakeCase().canBeMixedDashCase().canBeScreamingDashCase().canBeDashCase().canBeMixedDotCase().canBeScreamingDotCase().canBeDotCase().canBeMixedSlashCase().canBeScreamingSlashCase().canBeSlashCase().canBeMixedSpaceCase().canBeScreamingSpaceCase().canBeSpaceCase().canBeCapitalizedSpaceCase().canBeCamelCase().canBeProperCamelCase().canBePascalCase()Convert original string to given case
.makeMixedSnakeCase().makeMixedDotCase().makeMixedDashCase().makeMixedSlashCase().makeMixedSpaceCase().makeProperSnakeCase().makeProperDotCase().makeProperDashCase().makeProperSlashCase().makeProperSpaceCase().makeCamelCase().makeProperCamelCase().makePascalCase().makeScreamingSnakeCase().makeSnakeCase().makeScreamingDashCase().makeDashCase().makeScreamingDotCase().makeDotCase().makeScreamingSlashCase().makeSlashCase().makeSpaceCase().makeScreamingSpaceCase().makeCapitalizedSpaceCase()Use npm to install.
npm install util-string-case --save
MIT, see LICENSE.md for details.
FAQs
string case testing and conversion: mixed snake case, screaming snake case, screaming dash case, screaming dot case, screaming slash case, snake case, dash case, dot case, slash case, camel case
The npm package util-string-case receives a total of 53 weekly downloads. As such, util-string-case popularity was classified as not popular.
We found that util-string-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.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.