Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including oia with all npm packages installed. Try it out:

var oia = require("oia")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

oia v1.0.13

yet another lisp for js

oia

pronounced 'eeya'

oia(do 
  (def xf 
    (compose 
      (drop 20)
      (map (fn [x] (mul x 3))) 
      (filter (fn [x] (eq 0 (mod x 2)))) 
      (take 10)))
  
  (prn (seq (range 500) xf)))

  //> [ 60, 66, 72, 78, 84, 90, 96, 102, 108, 114 ]

usage

npm install oia -g
oia script.js | node

why?

  • js interop
  • immutable + transducers + channels
  • ui components
  • tooling

kinda works

in progress

  • tooling: bin / source maps / browserify / repl
  • macros

future

  • react macros
  • pattern matching

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free