{"id":13741528,"url":"https://github.com/ziglibs/lscolors","last_synced_at":"2025-10-17T02:55:20.065Z","repository":{"id":49311701,"uuid":"219324737","full_name":"ziglibs/lscolors","owner":"ziglibs","description":"A zig library for colorizing paths according to LS_COLORS","archived":false,"fork":false,"pushed_at":"2024-08-18T17:45:28.000Z","size":75,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-18T19:05:07.550Z","etag":null,"topics":["ls-colors","zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziglibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-11-03T15:47:57.000Z","updated_at":"2024-08-18T17:45:32.000Z","dependencies_parsed_at":"2023-11-24T22:20:26.594Z","dependency_job_id":"1e94fb45-b988-4b96-a646-48b4ec8122e6","html_url":"https://github.com/ziglibs/lscolors","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/ziglibs%2Flscolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Flscolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Flscolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Flscolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziglibs","download_url":"https://codeload.github.com/ziglibs/lscolors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224225071,"owners_count":17276436,"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":["ls-colors","zig","zig-package","ziglang"],"created_at":"2024-08-03T04:00:59.977Z","updated_at":"2025-10-17T02:55:15.006Z","avatar_url":"https://github.com/ziglibs.png","language":"Zig","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# lscolors\n\n![CI](https://github.com/ziglibs/zig-lscolors/workflows/CI/badge.svg)\n\nA zig library for colorizing paths according to the `LS_COLORS`\nenvironment variable. Designed to work with Zig 0.14.0.\n\n## Quick Example\n\n```zig\nconst std = @import(\"std\");\n\nconst LsColors = @import(\"lscolors\").LsColors;\n\npub fn main() !void {\n    var gpa: std.heap.DebugAllocator(.{}) = .init;\n    defer _ = gpa.deinit();\n    const allocator = gpa.allocator();\n\n    var lsc = try LsColors.fromEnv(allocator);\n    defer lsc.deinit();\n\n    var dir = try std.fs.cwd().openDir(\".\", .{ .iterate = true });\n    defer dir.close();\n\n    var iterator = dir.iterate();\n    while (try iterator.next()) |itm| {\n        std.log.info(\"{}\", .{try lsc.styled(itm.name)});\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Flscolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziglibs%2Flscolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Flscolors/lists"}