{"id":25637612,"url":"https://github.com/nehu3n/litecolor","last_synced_at":"2025-08-29T16:14:12.051Z","repository":{"id":275671555,"uuid":"926279412","full_name":"nehu3n/litecolor","owner":"nehu3n","description":"🎨 An ultra-tiny and elegant console style library compatible with any environment.","archived":false,"fork":false,"pushed_at":"2025-02-04T00:02:22.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T10:04:20.774Z","etag":null,"topics":["agnostic","chalk","colors","console","elegant","styles","tiny"],"latest_commit_sha":null,"homepage":"https://npmjs.com/litecolor","language":"TypeScript","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/nehu3n.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":"2025-02-03T00:19:50.000Z","updated_at":"2025-05-23T06:42:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"912ee537-7e99-4628-83d3-1be5d6ecb645","html_url":"https://github.com/nehu3n/litecolor","commit_stats":null,"previous_names":["nehu3n/litecolor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nehu3n/litecolor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nehu3n%2Flitecolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nehu3n%2Flitecolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nehu3n%2Flitecolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nehu3n%2Flitecolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nehu3n","download_url":"https://codeload.github.com/nehu3n/litecolor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nehu3n%2Flitecolor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272717267,"owners_count":24981482,"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-08-29T02:00:10.610Z","response_time":87,"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":["agnostic","chalk","colors","console","elegant","styles","tiny"],"created_at":"2025-02-23T01:27:52.845Z","updated_at":"2025-08-29T16:14:12.038Z","avatar_url":"https://github.com/nehu3n.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/nehu3n/litecolor/blob/5408275212b404e4424ed60d80e9c9b6ef97d93a/.github/icon.png\" width=\"170px\" align=\"right\" /\u003e\n\n# LiteColor\n\nAn ultra-tiny, elegant, and agnostic library for console styling, written in TypeScript.\n\n```ts\nimport { style } from \"litecolor\";\n\nconst text = style(\"Hello world!\")\n  .color(\"green\")\n  .bold()\n  .toString();\n\nconsole.log(text);\n```\n\n##### See more examples in the [examples folder](./examples).\n\n---\n\n## ✨ Features\n\n- Ultra tiny (_0.9kb_) [![Minzipped size][bundlephobia-src]][bundlephobia-href]\n- Elegant API\n- Agnostic (Deno, Bun and NodeJS)\n- Variety of styles and colors\n\n---\n\n## 🎀 Styles and colors\n\n_A clarification:_ the `.toString()` method is required to convert a string after applying colors and styles.\n\n#### Colors are applied with the `.color()` method.\n\n```ts\nconst text = style(\"hello world\").color(\"red\").toString(); // 'red' color\n```\n\nAnd they are the following:\n\n```ruby\n# Colors:\nblack\nred\ngreen\nyellow\nblue\nmagenta\ncyan\nwhite\ngray\ngrey\n\n# More vivid colors:\nbrightBlack\nbrightRed\nbrightGreen\nbrightYellow\nbrightBlue\nbrightMagenta\nbrightCyan\nbrightWhite\nbrightGray\nbrightGrey\n```\n\n#### Each style has its own method.\n\n```ts\nconst text = style(\"hello world\").bold().toString(); // 'bold' style\n```\n\nAnd they are the following:\n\n```ruby\n# Styles:\nreset\nbold\ndim\nitalic\nunderline\ninverse\nhidden\nstrikethrough\n```\n\n#### Background colors are applied with the `.bg()` method.\n\n```ts\nconst text = style(\"hello world\").bg(\"green\").toString(); // 'green' background color\n```\n\n---\n\n## 📄 License\n\nThis project is licensed under the [MIT License](./LICENSE).\n\n---\n\n[bundlephobia-src]: https://badgen.net/bundlephobia/minzip/litecolor\n[bundlephobia-href]: https://bundlephobia.com/result?p=litecolor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnehu3n%2Flitecolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnehu3n%2Flitecolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnehu3n%2Flitecolor/lists"}