MojiScript Hello World example.
# clone repository
git clone https://github.com/joelnet/MojiScript.git
# enter directory
cd MojiScript/examples/hello-world
# install dependencies
npm ci
npm start
You should see the output
Hello World
import log from 'mojiscript/console/log'
import pipe from 'mojiscript/core/pipe'
import run from 'mojiscript/core/run'
const state = 'Hello World'
const main = pipe([
log
])
run ({ main, state })