Skip to content

henry40408/lmb

Repository files navigation

lmb

lmb is a Lua function runner

Casual Maintenance Intended GitHub Workflow Status (with event) GitHub codecov

Table of Contents

Features

  • Evaluate Lua scripts.
  • Handle HTTP requests via Lua scripts.
  • Schedule Lua scripts with cron.

Installation

Prerequisites

  • Rust ≥ 1.85.0
git clone https://github.com/henry40408/lmb
cd lmb
cargo install --path . --locked

Usage

Find some examples:

lmb example ls

Evaluate an example:

lmb example eval --name hello

Evaluate a Lua script:

$ lmb eval --file lua-examples/hello.lua
hello, world!

Handle HTTP requests with a single script:

$ lmb example serve --bind 127.0.0.1:3000 --name echo
(another shell session) $ curl -X POST http://localhost:3000 -d $'hello'
hello

License

MIT

About

Lua function runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages