mirror of
https://github.com/rowtype-yoga/purs-eval.git
synced 2024-11-26 11:26:48 +03:00
doc: add node pipe
This commit is contained in:
parent
69684e1c82
commit
943f4a7854
14
README.md
14
README.md
@ -4,10 +4,20 @@ A simple PureScript expression evaluation tool
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
EXAMPLE=cat <<EOF
|
||||
module Main where
|
||||
|
||||
import Effect.Console (log)
|
||||
|
||||
main = log "hello"
|
||||
EOF
|
||||
|
||||
# With npm
|
||||
echo -e "module Main where\nimport Effect.Console (log)\nmain = log \"hello\"" | npx purs-eval
|
||||
echo $EXAMPLE | npx purs-eval
|
||||
|
||||
# With nix
|
||||
echo -e "module Main where\nimport Effect.Console (log)\nmain = log \"hello\"" | nix run github:klarkc/purs-eval
|
||||
echo $EXAMPLE | nix run github:klarkc/purs-eval
|
||||
|
||||
# Piping to node
|
||||
echo $EXAMPLE | npx purs-eval | nix run nixpkgs#nodejs -- --experimental-network-imports --input-type module
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user