Skip to content

Convert a string between the following cases: camel, kebab, pascal, pascal snake, screaming snake and snake.

Notifications You must be signed in to change notification settings

tomasfn87/variable-name-case-converter

Repository files navigation

variable-name-case-converter



Description

Script to easily switch a string between variable name cases.

Camel

  • variableName

Kebab

  • variable-name

Pascal

  • VariableName

Pascal snake

  • Variable_Name

Screaming snake

  • VARIABLE_NAME

Snake:

  • variable_name


How to use

Camel Case

$ node variable-name-case-converter.js camel 'input string example'
inputStringExample

Kebab Case

$ node variable-name-case-converter.js kebab 'input string example'
input-string-example

Pascal Case

$ node variable-name-case-converter.js pascal 'input string example'
inputStringExample

Pascal Snake Case

$ node variable-name-case-converter.js pascal-snake 'input string example'
Input_String_Example

Screaming Snake Case

$ node variable-name-case-converter.js screaming-snake 'input string example'
INPUT_STRING_EXAMPLE

Snake Case

$ node variable-name-case-converter.js snake 'input string example'
input_string_example

About

Convert a string between the following cases: camel, kebab, pascal, pascal snake, screaming snake and snake.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published