{"id":18530894,"url":"https://github.com/ortense/consolestylejs","last_synced_at":"2026-04-08T16:03:07.162Z","repository":{"id":226788005,"uuid":"769653425","full_name":"ortense/consolestylejs","owner":"ortense","description":"A lightweight package that allows you to style your terminal output with ease in your js/ts projects","archived":false,"fork":false,"pushed_at":"2024-03-17T03:41:03.000Z","size":225,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T01:20:51.099Z","etag":null,"topics":["ansi-escape-codes","bun","cli","color","command-line","commandline","console","deno","dependency-free","javascript","nodejs","terminal","typescript"],"latest_commit_sha":null,"homepage":"https://ortense.github.io/consolestylejs/","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/ortense.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-03-09T17:19:58.000Z","updated_at":"2024-03-11T12:20:14.000Z","dependencies_parsed_at":"2024-03-17T04:54:52.745Z","dependency_job_id":"da4ed176-fe0b-4e25-9c5e-8e1b700e0a3b","html_url":"https://github.com/ortense/consolestylejs","commit_stats":null,"previous_names":["ortense/consolestylejs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ortense/consolestylejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestylejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestylejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestylejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestylejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ortense","download_url":"https://codeload.github.com/ortense/consolestylejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestylejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ansi-escape-codes","bun","cli","color","command-line","commandline","console","deno","dependency-free","javascript","nodejs","terminal","typescript"],"created_at":"2024-11-06T18:04:22.379Z","updated_at":"2026-04-08T16:03:07.119Z","avatar_url":"https://github.com/ortense.png","language":"TypeScript","readme":"# @ortense/consolestyle\n\n![consolestyle demo in vscode terminal](https://raw.githubusercontent.com/ortense/consolestylejs/main/media/banner.png)\n\n[![Coverage Status](https://coveralls.io/repos/github/ortense/consolestylejs/badge.svg?branch=main)](https://coveralls.io/github/ortense/consolestylejs?branch=main) ![npm bundle size](https://img.shields.io/bundlephobia/min/%40ortense%2Fconsolestyle) [![GitHub License](https://img.shields.io/github/license/mashape/apistatus?branch=main\u0026label=License\u0026logo=GitHub\u0026logoColor=ffffff\u0026labelColor=282828\u0026color=informational\u0026style=flat)](https://github.com/ortense/consolestylejs/blob/main/LICENSE)\n\n\nA lightweight package weighing just 18.8 kB that allows you to style your console output with ease, adding colors, backgrounds, and various text styles to enhance your command-line experience.\n\n\n## Install\n\nPick your favorite package manager.\n\n```sh\nnpm install @ortense/consolestyle  # npm\nyarn add  @ortense/consolestyle    # yarn\npnpm add @ortense/consolestyle     # pnpm\nbun add @ortense/consolestyle      # bun\ndeno add @ortense/consolestyle     # deno from jsr.io\n```\n\n## Usage\n\nYou can use the fluent api of `style` function.\n\n```ts\nimport {style} from '@ortense/consolestyle'\n\nconst message = style('Hello there! 👋').cyan().italic()\n  .emptyLine()\n  .newLine('Are u tired of boring console outputs?').inverse()\n  .emptyLine()\n  .newLine('✨ Now u can easily create fun console messages! 🦄').magenta().bold()\n\nconsole.log(message.toString())\n```\n\nAlternatively, you can choose specific functions to apply styles to your console output.\n\n```ts\nimport {green, underline} from '@ortense/consolestyle'\n\nconst message = underline(green('Simplicity is sophistication 🍃'))\n\nconsole.log(message)\n```\nMore details in the [complete documentation](https://ortense.github.io/consolestylejs/).\n\n## Key Features\n\n- Easily style your console output with a fluent API.\n- Apply a wide range of text colors, backgrounds, and styles.\n- Enhance your command-line interface with vibrant and visually appealing messages.\n\n### Available styles\n\n- `red()`: Apply red text color.\n- `green()`: Apply green text color.\n- `yellow()`: Apply yellow text color.\n- `blue()`: Apply blue text color.\n- `magenta()`: Apply magenta text color.\n- `cyan()`: Apply cyan text color.\n- `bgRed()`: Apply red background color.\n- `bgGreen()`: Apply green background color.\n- `bgYellow()`: Apply yellow background color.\n- `bgBlue()`: Apply blue background color.\n- `bgMagenta()`: Apply magenta background color.\n- `bgCyan()`: Apply cyan background color.\n- `inverse()`: Apply inverted colors\n- `bold()`: Apply bold text style.\n- `dim()`: Apply dim text style.\n- `italic()`: Apply italic text style.\n- `underline()`: Apply underline text style.\n- `strike()`: Apply strike-through text style.\n\n\n## License\n\nThis package is licensed under the MIT License. See the LICENSE file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fortense%2Fconsolestylejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fortense%2Fconsolestylejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fortense%2Fconsolestylejs/lists"}