package camelsnakekebab
A Ocaml library for word case conversion
Install
Dune Dependency
Authors
Maintainers
Sources
0.4.tar.gz
md5=40b248887e33f5e76383784ce7d659e2
sha512=8c49df7db806650f11ff8af2aa8ad4a3c19356508f033621d493fa63f3688c4c9276c2cd88dc53bf017fa67c91f3557542d6efce1b5c1d282304f6465c56d2c3
README.md.html
NAME
camelsnakekebab
A Ocaml library for word case conversion
port of https://metacpan.org/pod/String::CamelSnakeKebab
SYNPOSIS
(split_words "foo bar");;
["foo"; "bar"]
(split_words "foo\n\tbar");;
["foo"; "bar"]
(split_words "foo-bar");;
["foo"; "bar"]
(split_words "fooBar");;
["foo"; "Bar"]
(split_words "FooBar");;
["Foo"; "Bar"]
(split_words "foo_bar");;
["foo"; "bar"]
(split_words "FOO_BAR");;
["FOO"; "BAR"]
(split_words "foo1");;
["foo1"]
(split_words "foo1bar");;
["foo1bar"]
(split_words "foo1_bar");;
["foo1";"bar"]
(split_words "foo1Bar");;
["foo1";"Bar"]
(upper_camel_case "flux_capacitor");;
"FluxCapacitor"
(lower_camel_case "flux_capacitor");;
"fluxCapacitor"
(lower_snake_case "ASnakeSlithersSlyly");;
"a_snake_slithers_slyly"
(lower_snake_case "address1");;
"address1"
(upper_snake_case "ASnakeSlithersSlyly");;
"A_Snake_Slithers_Slyly"
(constant_case "I am constant");;
"I_AM_CONSTANT"
(kebab_case "Peppers_Meat_Pineapple");;
"peppers-meat-pineapple"
(http_header_case "x-ssl-cipher");;
"X-SSL-Cipher"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>