{"id":18401967,"url":"https://github.com/vimtor/colorce","last_synced_at":"2025-04-12T17:53:27.613Z","repository":{"id":57203393,"uuid":"198997725","full_name":"vimtor/colorce","owner":"vimtor","description":"Node.js terminal highlighting as simple as it should be.","archived":false,"fork":false,"pushed_at":"2019-08-12T19:27:11.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T19:42:42.574Z","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/vimtor.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":"2019-07-26T10:28:25.000Z","updated_at":"2023-03-04T10:46:57.000Z","dependencies_parsed_at":"2022-09-18T01:11:28.991Z","dependency_job_id":null,"html_url":"https://github.com/vimtor/colorce","commit_stats":null,"previous_names":["papeloto/colorce"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtor%2Fcolorce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtor%2Fcolorce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtor%2Fcolorce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimtor%2Fcolorce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimtor","download_url":"https://codeload.github.com/vimtor/colorce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610411,"owners_count":21132920,"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-11-06T02:40:39.721Z","updated_at":"2025-04-12T17:53:27.586Z","avatar_url":"https://github.com/vimtor.png","language":"JavaScript","readme":"# colorce\n\nTerminal highlighting as simple as it should be.\n\n![Console Color](https://i.imgur.com/Da53488.png)\n\n## Install\n\n```\n$ npm install colorce\n```\n\n## Usage\n\nSimply import and invoke the module at the top of your main script.\n\n```js\nrequire('colorce')();\n\nconsole.error('This is an error'); // Already works!\n```\n\nYou can also customize the looks by using known packages such as [chalk](https://www.npmjs.com/package/chalk) or [colors.js](https://www.npmjs.com/package/colors)\n\n```js\nconst chalk = require('chalk');\nconst colors = require('colors');\n\nrequire('colorce')({\n    log: chalk.hex('#DEADED').bold,\n    info: chalk.blue,\n    warn: chalk.white.bgYellow,\n    error: colors.red,\n    success: colors.green.underline\n});\n```\n\nIf you want to disable color you can pass the following arguments to your application.\n\n```js\n$ node app.js --no-color\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimtor%2Fcolorce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimtor%2Fcolorce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimtor%2Fcolorce/lists"}