Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bolasblack/cljs.nodejs.shell

A clojurescript replacement for clojure.java.shell in nodejs runtime.
https://github.com/bolasblack/cljs.nodejs.shell

Last synced: 11 days ago
JSON representation

A clojurescript replacement for clojure.java.shell in nodejs runtime.

Awesome Lists containing this project

README

        

# cljs.nodejs.shell

Read [https://clojuredocs.org/clojure.java.shell](https://clojuredocs.org/clojure.java.shell) and [doc-string](https://github.com/bolasblack/cljs.nodejs.shell/blob/master/src/cljs/nodejs/shell.cljs) for usage.

## Difference between cljs.nodejs.shell, [clojure.java.shell](https://clojuredocs.org/clojure.java.shell), [planck.shell](http://planck-repl.org/planck-namespaces.html)

 |cljs.nodejs.shell | clojure.java.shell | planck.shell
-----|-----|-----|-----
`:in` in option | `String` or `js/Buffer` | [any legal input source for clojure.java.io/copy](https://github.com/clojure/clojure/blob/fe0cfc71e6ec7b546066188c555b01dae0e368e8/src/clj/clojure/java/shell.clj#L84) | `String` or [file url scheme](https://github.com/mfikes/planck/blob/f16c065ca09e24c9d73191805c402985137e83a9/planck-cljs/src/planck/shell.cljs#L57)
`:out` in result | `String` or `js/Buffer` | `byte[]` or `String` | `String`
spawn command asynchronously | no | no | [`sh-async`](https://github.com/mfikes/planck/blob/f16c065ca09e24c9d73191805c402985137e83a9/planck-cljs/src/planck/shell.cljs#L80)

## Install

```clojure
;; deps.edn
{:deps {cljs.nodejs.shell {:git/url "https://github.com/bolasblack/cljs.nodejs.shell"
:tag "0.2.1"}}}
```