{"id":13524966,"url":"https://github.com/adamscott/pico8-missing-builtins","last_synced_at":"2025-03-23T20:31:10.773Z","repository":{"id":70207052,"uuid":"59247829","full_name":"adamscott/pico8-missing-builtins","owner":"adamscott","description":"Provides Lua built-in functions to pico8.","archived":false,"fork":false,"pushed_at":"2019-03-23T20:23:55.000Z","size":58,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T01:11:50.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamscott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-19T22:38:24.000Z","updated_at":"2024-11-06T23:48:01.000Z","dependencies_parsed_at":"2023-02-25T23:15:15.163Z","dependency_job_id":null,"html_url":"https://github.com/adamscott/pico8-missing-builtins","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamscott%2Fpico8-missing-builtins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamscott%2Fpico8-missing-builtins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamscott%2Fpico8-missing-builtins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamscott%2Fpico8-missing-builtins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamscott","download_url":"https://codeload.github.com/adamscott/pico8-missing-builtins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245164867,"owners_count":20571199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:01:14.987Z","updated_at":"2025-03-23T20:31:10.506Z","avatar_url":"https://github.com/adamscott.png","language":"Lua","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# pico8-missing-builtins\n[![travis-ci](https://travis-ci.org/adamscott/pico8-missing-builtins.svg?branch=master)](https://travis-ci.org/adamscott/pico8-missing-builtins)\n[![codecov](https://codecov.io/gh/adamscott/pico8-missing-builtins/branch/master/graph/badge.svg)](https://codecov.io/gh/adamscott/pico8-missing-builtins)\n\nYou miss built-in lua functions such as `ipairs` or `getmetatable` in [pico-8](http://www.lexaloffle.com/pico-8.php)? Well, fear no more.\n\n## Currently supported Lua \"built-in\" functions\n- `getmetatable`\n- `setmetatable`\n- `rawget`\n- `unpack`\n- `ipairs`\n- `table.pack`\n- `table.unpack` as an alias to `unpack`\n- `table.insert`\n- `table.remove`\n- `table.sort`\n\n### Tested to imitate their counterparts\nTravis-CI is set to test `missing.lua` against `test.lua`, which compares results of this library functions with the built-in ones. Well, tests may be incomplete, so do not hesitate to [flag a bug to the issue tracker](https://github.com/adamscott/pico8-missing-builtins/issues) if something goes wrong.\n\n## How to use\nHeads up to the [latest release.](https://github.com/adamscott/pico8-missing-builtins/releases/latest) Then, there's two options:\n* Either you download `missing.lua` then copy the file contents into your `.p8` project file, preferably before the rest of your code; or\n* you load `missing.p8` in pico-8 to test it out first.\n\n### About this license\nThis library is under creative commons license [CC4-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/). See [LICENSE.md](LICENSE.md). It's the same license as the optional one on Lexaloffle's website if you choose to publish a cart.\n\nSo, if you happen to publish a cart using this library, it would be nice if you mention it.\n\n## Thanks\nTo Lexaloffle, which this library would not exist without pico-8.\n\n## Changes\n### 0.2\n- Add some `table` functions.\n  - `table.pack`\n  - `table.unpack` as an alias to `unpack`\n  - `table.insert`\n  - `table.remove`\n  - `table.sort`\n- Refactor `ipairs` to make it return an `iter` function, as the native one does.\n\n### 0.1\n- Add\n  - `getmetatable`\n  - `setmetatable`\n  - `rawget`\n  - `unpack`\n  - `ipairs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamscott%2Fpico8-missing-builtins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamscott%2Fpico8-missing-builtins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamscott%2Fpico8-missing-builtins/lists"}