infralang
[![Build Status](https://travis-ci.org/fabiosantoscode/infralang.svg?branch=master)](https://travis-ci.org/fabiosantoscode/infralang)
Last updated 3 years ago by fabiosantoscode .
ISC · Original npm · Tarball · package.json
$ cnpm install infralang 
SYNC missed versions from official npm registry.

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")

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |