1.2.1 • Published 12 months ago

case-format-converter v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

npm-word-format-converter

npm package to change word format

This is Node.js based library. It is providing word formating like camel case, snacke case etc.,

Installation

npm i case-format-converter

In Node.js:

var cfc = require("case-format-converter");
//camelcase
console.log(cfc.camelCase("word case format to change string into camelcase"));
//wordCaseFormatToChangeStringIntoCamelcase

//snakecase
console.log(cfc.snakeCase("word case format to change string into snakecase"));
//word_case_format_to_change_string_into_snakecase

//kebabcase
console.log(cfc.kebabCase("word case format to change string into kebabcase"));
//word-case-format-to-change-string-into-kebabcase

//traincase
console.log(cfc.trainCase("word case format to change string into traincase"));
//Word-Case-Format-To-Change-String-Into-Traincase

//titlecase
console.log(cfc.titleCase("word case format to change string into titlecase"));
//Word Case Format To Change String Into Titlecase

//pascalcase
console.log(
  cfc.pascalCase("word case format to change string into pascalcase")
);
//WordCaseFormatToChangeStringIntoPascalcase

//screming snakecase
console.log(
  cfc.screamingSnakeCase(
    "word case format to change string into screming snakecase"
  )
);
//WORD_CASE_FORMAT_TO_CHANGE_STRING_INTO_SCREMING_SNAKECASE