Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/icy-lava/lithium
- Owner: icy-lava
- License: mit
- Created: 2022-08-31T21:01:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T18:57:35.000Z (about 1 year ago)
- Last Synced: 2023-10-11T00:11:51.266Z (about 1 year ago)
- Topics: helper, library, love2d, lua, luajit, teal, utility
- Language: Lua
- Homepage:
- Size: 190 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 fileslocal lithium = require('lithium') -- or 'lithium.init' if it fails
local lstring, lio = lithium.string, lithium.iofor line in lstring.lines('hello\nworld') do
lio.pprint(line)
end
```