A simple PureScript expression evaluation tool
Go to file
2024-07-11 15:01:43 -03:00
.github build(deps): bump DeterminateSystems/update-flake-lock from 22 to 23 2024-07-01 10:10:45 -03:00
src fix: library API change 2023-08-21 15:13:51 -03:00
test feat: upgrade purs-nix and change mock server to httpurple 2024-07-11 15:01:43 -03:00
.gitignore fix: npm bin not being found 2022-11-02 06:21:09 -03:00
.npmignore feat: add purs-eval npm publication 2022-11-02 04:15:41 -03:00
CHANGELOG.md chore(main): release 1.4.1 2023-08-21 15:35:30 -03:00
flake.lock feat: upgrade purs-nix and change mock server to httpurple 2024-07-11 15:01:43 -03:00
flake.nix feat: upgrade purs-nix and change mock server to httpurple 2024-07-11 15:01:43 -03:00
LICENSE feat: Initial commit 2022-11-02 04:11:23 -03:00
package-lock.json chore(main): release 1.4.1 2023-08-21 15:35:30 -03:00
package.json chore(main): release 1.4.1 2023-08-21 15:35:30 -03:00
README.md doc: add npx example 2022-11-03 15:32:51 -03:00

purs-eval

A simple PureScript expression evaluation tool

Usage

EXAMPLE="module Main where\nimport Effect.Console (log)\nmain = log \"hello from PS\""

# With npm
echo -e $EXAMPLE | npx purs-eval

# With nix
echo -e $EXAMPLE | nix run github:klarkc/purs-eval 

# Pipe node (>v18)
echo -e $EXAMPLE | nix run github:klarkc/purs-eval | nix run nixpkgs#nodejs -- --experimental-network-imports --input-type module

# or with npx
echo -e $EXAMPLE | npx purs-eval | node --experimental-network-imports --input-type module