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 infralang with all npm packages installed. Try it out:

var infralang = require("infralang")

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

infralang v1.0.0

infralang

Build Status

Create your code on AWS lambda in a single place!

infralang -e

♥  bin/infralang -e '(+ 1 1)'
2
♥  bin/infralang -e '(+ 2 4)'
6

infralang -c

♥  bin/infralang -c '(console.log (+ 2 4))'
(async () => {
 const $runtime = require("/home/fabio/devel/infralang/lib/runtime")

 return await console.log(2 + 4)
})().catch(error => { console.error(error) })

(set variableName value)

(set variablename (sns "sns-topic"))

(loop [name value name2 value2] (recur))

(set list [1 2 3])

(loop [l list]
    (console.log l)
    (if l.length
        (recur (l.slice 1))))

(fn [arg1 arg2 ...] code...)

(fn [msg] onMessage
    (notif.publish {hello: "world"}))

(set notif (sns "sns-topic"))

(notif.subscribe onMessage)

(fetch "url")

(fetch "http://www.example.com")

(lambda "name" (fn [] null))

(set x (lambda "functionName" (fn [x]
    (console.log "hello" x))))

(x.call "param")

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