This library implements a workaround for CLJ-2253. Simply require (or use) this namespace before using slurp
and you're done.
CLJ-2253 is available as a Maven artifact from Clojars. The latest released version is:
If you prefer to kick the library's tyres before creating a project, you can use the lein try
plugin:
$ lein try clj-commons/clj-2253
or, if you have installed the Clojure CLI tools:
$ clj -Sdeps '{:deps {clj-commons/clj-2253 {:mvn/version "#.#.#"}}}' # Where #.#.# is replaced with an actual version number
Either way, you will be dropped in a REPL with the library downloaded and ready for use.
The functionality is provided by a single namespace, CLJ-2253
, that will work its hacky magic as soon as it's loaded.
Require it in the REPL (incl. a lein try
REPL):
(require '[CLJ-2253])
Require it in your project:
(ns my-app.core
(:require [CLJ-2253]))
CLJ-2253 is tested on:
JVM v1.6 | JVM v1.7 (OpenJDK) | JVM v1.8 (Oracle) | JVM v9 (Oracle) | JVM v10 (OpenJDK) | JVM v11 (OpenJDK) | |
---|---|---|---|---|---|---|
Clojure 1.4.0 | ❌1,2 | ❌1 | ❌1 | ❌1 | ❌1 | ❌1 |
Clojure 1.5.1 | ❌2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Clojure 1.6.0 | ❌2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Clojure 1.7.0 | ❌2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Clojure 1.8.0 | ❌2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Clojure 1.9.0 | ❌2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Clojure 1.10.0 | ❌2 | ❌3 | ✅ | ✅ | ✅ | ✅ |
1 I chose to only go back as far as Clojure v1.5.1. If anyone needs this tested on older versions of Clojure, PRs are welcome!
2 Leiningen v2.8 only supports JVM v1.7 and up
3 Clojure v1.10 only supports JVM v1.8 and up
Copyright 2018 Peter Monks
Distributed under the Apache License, Version 2.0.
SPDX-License-Identifier: Apache-2.0
To see the full list of licenses of all third party libraries used by this project, please run:
$ lein licenses :csv | cut -d , -f3 | sort | uniq
To see the dependencies and licenses in detail, run:
$ lein licenses
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close