{"id":28274583,"url":"https://github.com/10xengineersqualityprogramming/chalkbox","last_synced_at":"2025-10-16T09:38:33.999Z","repository":{"id":257810107,"uuid":"866659987","full_name":"10xEngineersQualityProgramming/chalkbox","owner":"10xEngineersQualityProgramming","description":"The best NPM color package.","archived":false,"fork":false,"pushed_at":"2024-10-02T16:46:38.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T02:27:37.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/10xEngineersQualityProgramming.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-02T16:46:11.000Z","updated_at":"2024-10-29T16:14:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f4520e5-72f5-49d3-a4f1-09642c731c0f","html_url":"https://github.com/10xEngineersQualityProgramming/chalkbox","commit_stats":null,"previous_names":["tj-commits/chalkbox","10xengineersqualityprogramming/chalkbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/10xEngineersQualityProgramming/chalkbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2Fchalkbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2Fchalkbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2Fchalkbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2Fchalkbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10xEngineersQualityProgramming","download_url":"https://codeload.github.com/10xEngineersQualityProgramming/chalkbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10xEngineersQualityProgramming%2Fchalkbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013695,"owners_count":26085390,"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-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2025-05-21T02:11:31.690Z","updated_at":"2025-10-16T09:38:33.994Z","avatar_url":"https://github.com/10xEngineersQualityProgramming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChalkBox\n\u003e one of the best colors modules out there.\nit does not extend string prototype and is 10x engineered. it uses commonjs and not esm.\n\n## get color and style in your node.js console\n(which is cool)\n![Demo](https://raw.githubusercontent.com/tj-commits/chalkbox/master/screenshots/colors.png)\n\n## Installation\n\n    npm install chalkbox\n\n## colors and styles!\n\n### text colors\n\n  - black\n  - red\n  - green\n  - yellow\n  - blue\n  - magenta\n  - cyan\n  - white\n  - gray\n  - grey\n\n### bright text colors\n\n  - brightRed\n  - brightGreen\n  - brightYellow\n  - brightBlue\n  - brightMagenta\n  - brightCyan\n  - brightWhite\n\n### background colors\n\n  - bgBlack\n  - bgRed\n  - bgGreen\n  - bgYellow\n  - bgBlue\n  - bgMagenta\n  - bgCyan\n  - bgWhite\n  - bgGray\n  - bgGrey\n\n### bright background colors\n\n  - bgBrightRed\n  - bgBrightGreen\n  - bgBrightYellow\n  - bgBrightBlue\n  - bgBrightMagenta\n  - bgBrightCyan\n  - bgBrightWhite\n\n### styles\n\n  - reset\n  - bold\n  - dim\n  - italic\n  - underline\n  - inverse\n  - hidden\n  - strikethrough\n\n### extras\n\n  - rainbow\n  - zebra\n  - america\n  - trap\n  - random\n\n## Usage\n\n```js\nconst chalkbox = require('chalkbox');\nconst log = require('logtoconsole').log;\n\nlog(chalkbox.green('hello')); // outputs green text\nlog(chalkbox.red.underline('i like cake and pies')); // outputs red underlined text\nlog(chalkbox.inverse('inverse the color')); // inverses the color\nlog(chalkbox.rainbow('OMG Rainbows!')); // rainbow\nlog(chalkbox.trap('Run the trap')); // Drops the bass\n\n```\n\n## Enabling/Disabling Colors\n\nThe package will auto-detect whether your terminal can use colors and enable/disable accordingly. When colors are disabled, the color functions do nothing. You can override this with a command-line flag:\n\n```bash\nnode myapp.js --no-color\nnode myapp.js --color=false\n\nnode myapp.js --color\nnode myapp.js --color=true\nnode myapp.js --color=always\n\nFORCE_COLOR=1 node myapp.js\n```\n\nOr in code:\n\n```javascript\nvar chalkbox = require('chalkbox');\nchalkbox.enable();\nchalkbox.disable();\n```\n\n## Custom themes\n\n```js\nvar chalkbox = require('chalkbox');\nvar log = require('logtoconsole').log;\n\n// set single property\nvar error = chalkbox.red;\nerror('this is red');\n\n// set theme\nchalkbox.setTheme({\n  silly: 'rainbow',\n  input: 'grey',\n  verbose: 'cyan',\n  prompt: 'grey',\n  info: 'green',\n  data: 'grey',\n  help: 'cyan',\n  warn: 'yellow',\n  debug: 'blue',\n  error: 'red'\n});\n\n// outputs red text\nlog(chalkbox.error(\"this is an error\"));\n\n// outputs yellow text\nlog(chalkbox.warn(\"this is a warning\"));\n\n```\n\n### Combining Colors\n\n```javascript\nvar chalkbox = require('chalkbox');\n\nchalkbox.setTheme({\n  custom: ['red', 'underline']\n});\n\nconsole.log(chalkbox.custom('test'));\n```\n\n*Protip: There is a secret undocumented style in `chalkbox`. If you find the style you can summon him.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10xengineersqualityprogramming%2Fchalkbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10xengineersqualityprogramming%2Fchalkbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10xengineersqualityprogramming%2Fchalkbox/lists"}