{"id":49182886,"url":"https://github.com/simple-works/0console","last_synced_at":"2026-04-23T02:04:36.838Z","repository":{"id":57092788,"uuid":"466650236","full_name":"simple-works/0console","owner":"simple-works","description":"✒️ Patched console functions with improved output.","archived":false,"fork":false,"pushed_at":"2022-03-07T02:46:02.000Z","size":430,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T22:57:31.262Z","etag":null,"topics":["color","console","js","node","node-console","nodejs","nodejs-console"],"latest_commit_sha":null,"homepage":"","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/simple-works.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":"2022-03-06T05:57:37.000Z","updated_at":"2023-09-12T20:24:42.000Z","dependencies_parsed_at":"2022-08-22T21:40:42.167Z","dependency_job_id":null,"html_url":"https://github.com/simple-works/0console","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simple-works/0console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simple-works","download_url":"https://codeload.github.com/simple-works/0console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0console/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32162614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"online","status_checked_at":"2026-04-23T02:00:06.710Z","response_time":53,"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":["color","console","js","node","node-console","nodejs","nodejs-console"],"created_at":"2026-04-23T02:04:14.574Z","updated_at":"2026-04-23T02:04:36.827Z","avatar_url":"https://github.com/simple-works.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✒️ 0console\n\n[![NPM version](https://badge.fury.io/js/0console.svg)](https://npmjs.org/package/0console)\n\nSimple patched console functions with improved output.\n\n![Screenshot](./screenshot.jpg?raw=true)\n\n# 📥 Install\n\n```\nnpm i 0console\n```\n\n# 🏁 Use\n\nWith patched console object:\n\n```js\nrequire(\"0console\").patch();\n\nconsole.log(\"Hello World!\");\nconsole.log(\"Highlighted\", \"Hello World!\");\n```\n\nWithout patching the console object:\n\n```js\nconst $console = require(\"0console\");\n\n$console.log(\"Hello World!\");\n$console.log(\"Highlighted\", \"Hello World!\");\n```\n\n# ⚙️ Functions\n\n- `console.log(...args)` : Writes a normal message.\n- `console.info(...args)` : Writes an information message.\n- `console.warn(...args)` : Writes a warning message.\n- `console.error(...args)` : Writes an error message.\n- `console.clear(...args)` : Clears the output (Unlike the original).\n- 🆕 `console.success(...args)` : Writes a success message.\n- 🆕 `console.line(char?, color?, count?)` : Writes an horizontal line.\n  - `char` : text to repeat (one character).\n  - `color` : text color in the console (Using [Chalk](https://github.com/chalk/chalk)).\n  - `count` : times to repeat `char` (Length of the line).\n\n💡 If a logging function (log, info, warn, error, success) has more than one argument, the text of the first argument will be highlighted in the console.\n\n# ⚙️ Craft Function\n\nYou can craft your own custom function:\n\n```js\nconst $console = require(\"0console\");\n\nconst newConsoleInfo = $console.craft(console.info, {\n  prefix: { text: \"?\", color: \"cyanBright\", bgColor: \"bgBlueBright\" },\n  highlight: { color: \"blueBright\" },\n  normal: { color: \"blueBright\" },\n});\n```\n\n- `console.craft(fn, options?)` : Crafts a patched version of the given console function.\n  - `fn` : Console function to craft from.\n  - `options` : Options object.\n    - `prefix` : Object describing the prefix text.\n      - `text`: Text of the prefix.\n      - `color`: Color of the prefix.\n      - `bgColor`: Background color of the prefix.\n    - `highlight` : Object describing the highlighted text of the first argument.\n      - `color`: Color of the highlighted text.\n    - `normal` :  Object describing the normal text.\n      - `color`: Color of the normal text.\n\n# 📃 License\n[MIT](./LICENSE) © [Ambratolm](https://github.com/Ambratolm)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-works%2F0console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-works%2F0console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-works%2F0console/lists"}