An open API service indexing awesome lists of open source software.

https://github.com/quan-nh/deps-repl


https://github.com/quan-nh/deps-repl

clj deps repl

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

## Call the -main function
### Clj
```sh
$ clj -m foo.other-bar a b c
hello a
```

## Cljs with node.js modules
```sh
$ npm install
$ clj -A:cljs -m foo.baz foo 5
" foo"
```

## REPL
```clj
$ clj
Clojure 1.9.0
user=> (load "foo/other_bar")
user=> (in-ns 'foo.other-bar)
foo.other-bar=> (-main :a :b :c)
hello :a
```

## REPL Friendly Mode
With `rebel-readline` & `expound`
```clj
$ clj -A:friendly
[Rebel readline] Type :repl/help for online help info
user=> (require '[expound.alpha :as expound])
nil
user=> (expound/expound string? 1)
nil
-- Spec failed --------------------

1

should satisfy

string?

-------------------------
Detected 1 error
user=>
```