case-convert

1.1.0 • Public • Published

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+)

Package Sidebar

Install

npm i case-convert

Weekly Downloads

2

Version

1.1.0

License

LGPL-3.0-or-later

Unpacked Size

4.96 kB

Total Files

4

Last publish

Collaborators

  • olive007