text-case examples
parent
b7a39558cf
commit
758984504f
30
README.md
30
README.md
|
@ -71,6 +71,36 @@ Here is an example usage of **ziba.js**:
|
||||||
* `name`
|
* `name`
|
||||||
* `transform` — possible values: `"lowercase"`, `"uppercase"`, `"lowerllamacase"`, `"upperllamacase"`, `"lowersnakecase"`, `"uppersnakecase"`, `"lowerslugcase"`, `"upperslugcase"`
|
* `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
|
## Import
|
||||||
|
|
||||||
To import module **ziba** use `import` code like the following:
|
To import module **ziba** use `import` code like the following:
|
||||||
|
|
Loading…
Reference in New Issue