Does anyone know a slugger (slugging?) library compatible with babashka? I found https://github.com/pelle/slugger but it requires java source code which AFAIK makes it incompatible
This one seems to work:
$ bb -Sdeps '{:deps {funcool/cuerdas {:mvn/version "2023.11.09-407"}}}'
Downloading: funcool/cuerdas/2023.11.09-407/cuerdas-2023.11.09-407.pom from clojars
Downloading: funcool/cuerdas/2023.11.09-407/cuerdas-2023.11.09-407.jar from clojars
Babashka v1.12.219-SNAPSHOT
Type :repl/help for help
user=> (require '[cuerdas.core :as str])
#_=> (str/slug "Un éléphant à l'orée du bois")
nil
"un-elephant-a-loree-du-bois"wow where has this lib been my whole life thanks @borkdude
harold@straylight:~/foo$ bb -Sdeps '{:deps {camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}}}'
Babashka v1.12.212 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[camel-snake-kebab.core :as csk])
nil
user=> (csk/->camelCase 'flux-capacitor)
fluxCapacitor
user=> (csk/->SCREAMING_SNAKE_CASE "I am constant")
"I_AM_CONSTANT"
user=> (csk/->kebab-case :object_id)
:object-id
user=> (csk/->HTTP-Header-Case "x-ssl-cipher")
"X-SSL-Cipher"
^ we also make heavy use of this lib...