{"id":18776029,"url":"https://github.com/wlingze/icecream-lua","last_synced_at":"2025-10-04T14:15:13.608Z","repository":{"id":161979050,"uuid":"320745635","full_name":"wlingze/icecream-lua","owner":"wlingze","description":"Never use print() to debug again. (lua)","archived":false,"fork":false,"pushed_at":"2025-02-06T06:14:21.000Z","size":13,"stargazers_count":25,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T07:32:17.153Z","etag":null,"topics":["debug","debugging-tools","lua","print"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wlingze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-12T04:14:32.000Z","updated_at":"2025-02-06T06:14:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"be12822d-a2fe-4ad4-b5ff-0d82784924e7","html_url":"https://github.com/wlingze/icecream-lua","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wlingze/icecream-lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlingze%2Ficecream-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlingze%2Ficecream-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlingze%2Ficecream-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlingze%2Ficecream-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlingze","download_url":"https://codeload.github.com/wlingze/icecream-lua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlingze%2Ficecream-lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278322146,"owners_count":25967874,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["debug","debugging-tools","lua","print"],"created_at":"2024-11-07T19:44:33.067Z","updated_at":"2025-10-04T14:15:13.569Z","avatar_url":"https://github.com/wlingze.png","language":"Lua","readme":"# IceCream-lua\n\nNever use print() to debug again. (lua)\n\nlua version of [IceCream](https://github.com/gruns/icecream).\n\n## install\n\n```sh\nluarocks install icecream-lua\n```\n\n## use\n\nimport module:\n\n```lua\nlocal ic = require(\"icecream\")\n```\n\njust use ic() to print information\n\n**The example of printing variables**\n\n```lua\na = 10\nic(a)\nlocal x = 1\nlocal y = 2\nic(x,y)\n```\n\noutput  `ic| a = 1` and `ic| x = 1, y = 1`\n\n**The example of printing function**\n\n```lua\nlocal function fun1(a) \n    return a + 1 \nend\nic(fun1(22))\n```\n\noutput  `ic| fun1(22) = 23`\n\n**The example when there are no parameters**\n\n```lua\nic()\n```\n\noutput: `ic| ` + filename + line + function, like this: `ic| /home/wlz/gh/icecream-lua/main.lua:37: in local 'testNoArg'`\n\n**The example when there is no variable name**\n\n```lua\nic(1, 2)\n```\n\noutput: `ic| 1, 2`\n\n**The example of display line number**\n\n```lua\nic(x,y)\n-- ic| x = 1, y = 1\nic:SetIsOutPutPosition(true)\nic(x,y)\n-- /home/wlz/gh/icecream-lua/main.lua:11: in local 'testPosition'\n-- ic| x = 1, y = 1\n```\n\n**Example of enabling and disabling print**\n\n```lua\nlocal  x = 1\nlocal  y = 2\nlocal  z = 3\n\nic:Disable()\nic(x)\nic(y)\nic:Enable()\nic(z)\n-- ic| z = 3\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlingze%2Ficecream-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlingze%2Ficecream-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlingze%2Ficecream-lua/lists"}