Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icy-lava/lithium

Heavy weight "standard" library for Lua / Teal / LÖVE
https://github.com/icy-lava/lithium

helper library love2d lua luajit teal utility

Last synced: about 2 months ago
JSON representation

Heavy weight "standard" library for Lua / Teal / LÖVE

Awesome Lists containing this project

README

        

# Lithium

Lithium is a heavy-weight "standard" library for Lua, Teal and LÖVE.

***It is currently considered unstable and the API is also unstable. Don't use this yet unless you want to cry :)***

## Install

```shell
# Install Teal using luarocks
# (Teal files will be compiled into Lua in the future)
luarocks install tl

# Within a git repository
git submodule add https://github.com/icy-lava/lithium.git lithium

# Or, without a git repository
git clone https://github.com/icy-lava/lithium.git lithium
```

## Usage

```lua
-- main.lua
require('tl').loader() -- If using uncompiled Teal files

local lithium = require('lithium') -- or 'lithium.init' if it fails
local lstring, lio = lithium.string, lithium.io

for line in lstring.lines('hello\nworld') do
lio.pprint(line)
end
```