Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/truemedian/lua-extensions
https://github.com/truemedian/lua-extensions
hacktoberfest lua
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/truemedian/lua-extensions
- Owner: truemedian
- License: mit
- Created: 2020-10-27T23:50:49.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T18:23:18.000Z (about 1 year ago)
- Last Synced: 2023-10-23T19:31:23.683Z (about 1 year ago)
- Topics: hacktoberfest, lua
- Language: Lua
- Homepage:
- Size: 140 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lua Extensions
> This library is intended for use in the [Luvit](https://luvit.io/) environment. However it may eventually be adapted
> for use elsewhere.## Installation
```
lit install truemedian/extensions
```## Documentation
https://pages.truemedian.me/lua-extensions/
## Usage
Each extension may be loaded separately, or all at the same time. Alternatively, the extensions may be accessed
individually without injecting them into your global environment.### Injecting All Extensions
This loads all extensions into the global environment.
```lua
local extensions = require 'extensions' ()
```### Using Individual Extensions
This accesses the `split` extension without ever modifying your global environment.
```lua
local extensions = require 'extensions'local out = extensions.string.split("hello world", " ")
```