🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

case-convert

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

case-convert

Cross library to convert case with permissive input

1.1.0
Maintainers
1

Convert Case

Cross-language library to convert case with permissive inputs.

Language supported

The library is available in:

Code examples

Code example: JavaScript

import { camelCase } from "../src/index";

camelCase("helloGreat world");  // helloGreatWorld
camelCase("__hello Great--world");  // helloGreatWorld

Code example: Python

from case_convert import camel_case

camel_case("helloGreat world")  # helloGreatWorld
camel_case("__hello Great--world")  # helloGreatWorld

Cases supported

The library can convert to the following cases:

  • camel
  • kebab
  • pascal
  • snake
  • upper

Issues/Bug report or improvement ideas

https://gitlab.com/olive007/case-convert/-/issues

License

GNU Lesser General Public License v3 or later (LGPLv3+)

FAQs

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