{"id":19189329,"url":"https://github.com/maxiy01/tstl-log-lua","last_synced_at":"2026-02-09T10:31:33.419Z","repository":{"id":57381857,"uuid":"436586823","full_name":"maxiy01/tstl-log-lua","owner":"maxiy01","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-09T11:12:18.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T08:48:46.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/maxiy01.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}},"created_at":"2021-12-09T11:12:16.000Z","updated_at":"2021-12-09T11:12:21.000Z","dependencies_parsed_at":"2022-09-13T11:31:04.658Z","dependency_job_id":null,"html_url":"https://github.com/maxiy01/tstl-log-lua","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiy01%2Ftstl-log-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiy01%2Ftstl-log-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiy01%2Ftstl-log-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiy01%2Ftstl-log-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxiy01","download_url":"https://codeload.github.com/maxiy01/tstl-log-lua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240266854,"owners_count":19774074,"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-11-09T11:29:03.163Z","updated_at":"2026-02-09T10:31:33.334Z","avatar_url":"https://github.com/maxiy01.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TSTL json.lua\n\nDeclarations for [log.lua](https://github.com/rxi/log.lua), A tiny logging module for Lua.\n\n\n| Command | Description |\n|-|-|\n| `yarn add -D tstl-log-lua` | Install these declarations |\n| `yarn add rxi/log.lua` | Install log.lua |\n\n\nUpon installation these declarations can be linked to a _tsconfig.json_ file.\n\n```json\n{\n    \"compilerOptions\": {\n        \"types\": [\n            \"tstl-log-lua\"\n        ]\n    }\n}\n```\n\nAnd used within any _.ts_ file.\n\n```ts\nimport * as log from \"log\";\n\nlog.usecolor = true;\n\nlog.info(\"Hello world!\");\n\n```\n\nMake sure to append `\";./node_modules/log.lua/?.lua\"` to your `package.path` in a _conf.ts_ file (this is run first) to assist where Lua looks for modules.\n\n```ts\npackage.path += \";./node_modules/log.lua/?.lua\";\n```\n\nAlso you need to add `\"typescript-to-lua/language-extensions\"` to _tsconfig.json_ file.\n```json\n{\n    \"compilerOptions\": {\n        \"types\": [\n            \"typescript-to-lua/language-extensions\"\n        ]\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxiy01%2Ftstl-log-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxiy01%2Ftstl-log-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxiy01%2Ftstl-log-lua/lists"}