{"id":22246198,"url":"https://github.com/jpbaking/tty-strings-colorer","last_synced_at":"2025-03-25T11:23:53.610Z","repository":{"id":57382046,"uuid":"136865027","full_name":"jpbaking/tty-strings-colorer","owner":"jpbaking","description":"tty-strings-colorer","archived":false,"fork":false,"pushed_at":"2018-06-16T15:02:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T10:29:18.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jpbaking.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}},"created_at":"2018-06-11T02:33:03.000Z","updated_at":"2018-06-11T05:42:25.000Z","dependencies_parsed_at":"2022-09-05T13:40:33.218Z","dependency_job_id":null,"html_url":"https://github.com/jpbaking/tty-strings-colorer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Ftty-strings-colorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Ftty-strings-colorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Ftty-strings-colorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpbaking%2Ftty-strings-colorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpbaking","download_url":"https://codeload.github.com/jpbaking/tty-strings-colorer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245450751,"owners_count":20617410,"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-12-03T05:26:36.299Z","updated_at":"2025-03-25T11:23:53.579Z","avatar_url":"https://github.com/jpbaking.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tty-strings-colorer\n\n### Version: 1.0.0\n\nColorer for TTY (TeleTYpewriter) Terminal/Console Written Strings\n\n_[tty-strings-colorer](https://github.com/jpbaking/tty-strings-colorer) by [jpbaking](https://github.com/jpbaking)_\n\n## Sample Usage\n\n### Code:\n```javascript\nconsole.log(\n  '0) default console/terminal format/color')\n\n// BASIC USAGE\nconst colorer = require('tty-strings-colorer')();\nconsole.log(colorer.bright(\n  '1) colorer.bright(string)'));\nconsole.log(colorer.bgBlue(\n  '2) colorer.bgBlue(string)'));\nconsole.log(colorer.fgYellow(\n  '3) colorer.fgYellow(string)'));\nconsole.log(colorer.bgRed().fgYellow(\n  '4) colorer.bgBlue().fgYellow(string)'));\n\n// PRESET\nconst green = require('tty-strings-colorer')('green');\nconsole.log(green.color(\n  '5) green.color(string)'));\n\nconst greenOnWhite = require('tty-strings-colorer')('green', 'white');\nconsole.log(greenOnWhite.color(\n  '7) greenOnWhite.color(string)'));\n```\n\n### Output:\n![Sample Output](.readme/ColorTestOutput.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbaking%2Ftty-strings-colorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpbaking%2Ftty-strings-colorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpbaking%2Ftty-strings-colorer/lists"}