babashka

Santiago 2026-06-11T20:09:33.656499Z

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

✅ 1
borkdude 2026-06-11T20:12:21.700249Z

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"

Santiago 2026-06-11T20:13:39.685679Z

wow where has this lib been my whole life thanks @borkdude

Harold 2026-06-11T22:02:39.590429Z

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...