diff --git a/README.md b/README.md index 3610e242..54e20582 100644 --- a/README.md +++ b/README.md @@ -769,7 +769,7 @@ Differences with Clojure: - No `defprotocol`, `defrecord` and unboxed math. -## [Projects](doc/projects.md) +## [Libraries and projects](doc/libraries.md) A list of projects (scripts, libraries and tools) known to work with babashka. diff --git a/doc/projects.md b/doc/libraries.md similarity index 98% rename from doc/projects.md rename to doc/libraries.md index 796e9ee5..23081a76 100644 --- a/doc/projects.md +++ b/doc/libraries.md @@ -1,9 +1,20 @@ -# Projects +# Libraries and projects The following libraries and projects are known to work with babashka. ## Libraries +### [clj-http-lite](https://github.com/borkdude/clj-http-lite) + +A fork of a fork of `clj-http-lite`. Example: + +``` shell +$ export BABASHKA_CLASSPATH="$(clojure -Sdeps '{:deps {clj-http-lite {:git/url "https://github.com/borkdude/clj-http-lite" :sha "f44ebe45446f0f44f2b73761d102af3da6d0a13e"}}}' -Spath)" + +$ bb "(require '[clj-http.lite.client :as client]) (:status (client/get \"https://www.clojure.org\"))" +200 +``` + ### [spartan.spec](https://github.com/borkdude/spartan.spec/) An babashka-compatible implementation of `clojure.spec.alpha`. @@ -42,17 +53,6 @@ $ bb -e "(require '[medley.core :as m]) (m/index-by :id [{:id 1} {:id 2}])" {1 {:id 1}, 2 {:id 2}} ``` -### [clj-http-lite](https://github.com/borkdude/clj-http-lite) - -This fork does not depend on any other libraries. Example: - -``` shell -$ export BABASHKA_CLASSPATH="$(clojure -Sdeps '{:deps {clj-http-lite {:git/url "https://github.com/borkdude/clj-http-lite" :sha "f44ebe45446f0f44f2b73761d102af3da6d0a13e"}}}' -Spath)" - -$ bb "(require '[clj-http.lite.client :as client]) (:status (client/get \"https://www.clojure.org\"))" -200 -``` - ### [limit-break](https://github.com/technomancy/limit-break) A debug REPL library.