From 758984504f0e28a60b6adb88364391080c8e645b Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 17 Nov 2023 09:46:15 -0800 Subject: [PATCH] text-case examples --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index c649aab..d185adc 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,36 @@ Here is an example usage of **ziba.js**: * `name` * `transform` — possible values: `"lowercase"`, `"uppercase"`, `"lowerllamacase"`, `"upperllamacase"`, `"lowersnakecase"`, `"uppersnakecase"`, `"lowerslugcase"`, `"upperslugcase"` +### Text-Case + +Here are some examples to help understand the text-casing for the `transform` attribute: + +``` + +"once TWICE tHRICE Fource" -- (lowercase) -------> "once twice thrice fource" + +"once TWICE tHRICE Fource" -- (uppercase) -------> "ONCE TWICE THRICE FOURCE" + + + +"once TWICE tHRICE Fource" -- (lowerllamacase) --> "oncetwicethricefource" + +"once TWICE tHRICE Fource" -- (upperllamacase) --> "ONCETWICETHRICEFOURCE" + + + +"once TWICE tHRICE Fource" -- (lowersnakecase) --> "once_twice_thrice_fource" + +"once TWICE tHRICE Fource" -- (uppersnakecase) --> "ONCE_TWICE_THRICE_FOURCE" + + + +"once TWICE tHRICE Fource" -- (lowerslugcase) ---> "once-twice-thrice-fource" + +"once TWICE tHRICE Fource" -- (upperslugcase) ---> "ONCE-TWICE-THRICE-FOURCE" + +``` + ## Import To import module **ziba** use `import` code like the following: