{"id":19093469,"url":"https://github.com/hasinhayder/colorconsole","last_synced_at":"2025-04-30T12:45:28.806Z","repository":{"id":38818082,"uuid":"498837184","full_name":"hasinhayder/colorconsole","owner":"hasinhayder","description":"Colorconsole provides an interesting way to display colored info, success, warning and error messages on the developer console in your browser","archived":false,"fork":false,"pushed_at":"2022-06-03T09:07:04.000Z","size":18,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T02:35:03.005Z","etag":null,"topics":["javascript","npm","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@hasinhayder/colorconsole","language":"TypeScript","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/hasinhayder.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}},"created_at":"2022-06-01T17:38:28.000Z","updated_at":"2023-05-28T13:19:01.000Z","dependencies_parsed_at":"2022-09-25T04:10:48.927Z","dependency_job_id":null,"html_url":"https://github.com/hasinhayder/colorconsole","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasinhayder%2Fcolorconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasinhayder%2Fcolorconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasinhayder%2Fcolorconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasinhayder%2Fcolorconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasinhayder","download_url":"https://codeload.github.com/hasinhayder/colorconsole/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251703199,"owners_count":21630197,"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":["javascript","npm","typescript"],"created_at":"2024-11-09T03:24:48.633Z","updated_at":"2025-04-30T12:45:28.779Z","avatar_url":"https://github.com/hasinhayder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorConsole NPM Package\n\nColorconsole provides an interesting way to display colored info, success, warning and error messages on the developer console in your browser.\n\n![](https://res.cloudinary.com/roxlox/image/upload/v1654246755/assorted%20/283283450_10159158088149633_6008511946195677596_n_jaajhq.jpg)\n\n## Available Methods\n\n```javascript\ncolorconsole.warning(\"some warning message\")\ncolorconsole.success(\"some success message\")\ncolorconsole.info(\"some informations\")\ncolorconsole.error(\"some error message\")\ncolorconsole.log(\"normal message\")\ncolorconsole.custom(\"custom message\", \"red\", \"#fff\", 20, 5)\n- custom parameters:\n    - message: string\n    - backgroundColor: name | hex | rgba | rgb | hsl\n    - textColor: name | hex | rgba | rgb | hsl\n    - fontSize: number\n    - padding: number\n```\n\n# Use in ESM Projects\n\n```shell\nnpm install @hasinhayder/colorconsole\n\nor\n\nyarn add @hasinhayder/colorconsole\n```\n\nthen\n\n```javascript\nimport colorconsole from '@hasinhayder/colorconsole'\n\ncolorconsole.success(\"ColorConsole is Working\")\ncolorconsole.log(\"A Simple Message, just like console.log()\")\ncolorconsole.warning(\"This is a warning\")\ncolorconsole.info(\"ColorConsole is an NPM package\")\ncolorconsole.log(\"Available at https://www.npmjs.com/package/@hasinhayder/colorconsole\")\ncolorconsole.log(\"Github Repo: https://github.com/hasinhayder/colorconsole\")\ncolorconsole.error(\"Sample Error Message\")\ncolorconsole.log(\"Isn't this beautiful?\")\ncolorconsole.log(\"Check github repo url for the documentation\")\ncolorconsole.custom(\"Make your own style\", \"red\", \"#fff\", 20, 5)\n```\n\n# Use In Browser\n\n```html\n\u003cscript src='https://cdn.jsdelivr.net/npm/@hasinhayder/colorconsole@latest/dist/colorconsole.min.js'\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n    colorconsole.success(\"ColorConsole is Working\")\n    colorconsole.log(\"A Simple Message, just like console.log()\")\n    colorconsole.warning(\"This is a warning\")\n    colorconsole.info(\"ColorConsole is an NPM package\")\n    colorconsole.log(\"Available at https://www.npmjs.com/package/@hasinhayder/colorconsole\")\n    colorconsole.log(\"Github Repo: https://github.com/hasinhayder/colorconsole\")\n    colorconsole.error(\"Sample Error Message\")\n    colorconsole.log(\"Isn't this beautiful?\")\n    colorconsole.log(\"Check github repo url for the documentation\")\n    colorconsole.custom(\"Make your own style\", \"red\", \"#fff\", 20, 5)\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasinhayder%2Fcolorconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasinhayder%2Fcolorconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasinhayder%2Fcolorconsole/lists"}