$ cnpm install infralang
Create your code on AWS lambda in a single place!
♥ bin/infralang -e '(+ 1 1)'
2
♥ bin/infralang -e '(+ 2 4)'
6
♥ 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 (sns "sns-topic"))
(set list [1 2 3])
(loop [l list]
(console.log l)
(if l.length
(recur (l.slice 1))))
(fn [msg] onMessage
(notif.publish {hello: "world"}))
(set notif (sns "sns-topic"))
(notif.subscribe onMessage)
(fetch "http://www.example.com")
(set x (lambda "functionName" (fn [x]
(console.log "hello" x))))
(x.call "param")
Copyright 2014 - 2016 © taobao.org |