KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
salt
★ 10
Open GitHub ↗
Save And Load Tables for Lua
Download README (.md)
Explore Similar Repositories
cmb2-theme-options-with-tabs
:
A simple way to create your own WordPress theme options page with tabs (WPML compatible)
flask-boilerplate
:
Docker container with Flask, livereload, and a light frontend: flask-assets, scss, and jsmin
evc-swift
:
Engine - View - Controller template
ABAPFire
:
ABAP Firebase Client
sarl-acl
:
FIPA Agent Communication Language for SARL
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
salt
?
Download (.md)
# SALT Save And Load Tables for Lua ### Description Saves Lua table data to a file recursively and human-readable, with indentation. This is done by writing the data to the file on-the-fly while iterating through the table data. Supported Types: `number`,`string`,`boolean`, sub-tables of the same. `function` and `userdata` types are not supported. Because it's writing as it goes, any unsupported types will be saved as `nil` with a comment noting the error. ### Installation ##### LuaRocks ```bash luarocks install salt ``` ##### Git Clone ```bash git clone https://github.com/VaiN474/salt.git ``` ### Usage ```lua salt = assert(require("salt")) salt.save(my_table,"/path/to/file") salt.save(my_table,"/path/to/file",true) -- data will be compressed my_table,err = salt.load("/path/to/file") ``` When using `salt.load` it will return the table and nil, or if an error occurrs it will return nil and the error message.