{"id":18739003,"url":"https://github.com/gaubee/console-pro","last_synced_at":"2025-07-22T06:05:36.458Z","repository":{"id":57206065,"uuid":"99748165","full_name":"Gaubee/console-pro","owner":"Gaubee","description":"better console for support console.group[End]","archived":false,"fork":false,"pushed_at":"2021-04-01T01:21:23.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T11:22:00.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Gaubee.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":"2017-08-09T00:30:02.000Z","updated_at":"2021-12-18T09:35:07.000Z","dependencies_parsed_at":"2022-09-18T06:55:38.567Z","dependency_job_id":null,"html_url":"https://github.com/Gaubee/console-pro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gaubee/console-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fconsole-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fconsole-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fconsole-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fconsole-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gaubee","download_url":"https://codeload.github.com/Gaubee/console-pro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fconsole-pro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266437371,"owners_count":23928235,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2024-11-07T15:32:23.953Z","updated_at":"2025-07-22T06:05:36.437Z","avatar_url":"https://github.com/Gaubee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console-PRO\n\nuse  to Wrap your log.\nUse **colors** and **console.group[End]** to wrap your log, making the log more beautiful and easier to analyze.\n\n# Install\n\n```\nnpm install console-pro --save\n```\n\n# Usage\n\n```js\nconst { ConsolePro } = require(\"console-pro\");\nconst myconsole = new ConsolePro({ async_log: true, auto_reduce_indent: true });\n\nconst g1 = myconsole.group(\"G1 Start!\"); // no color\nconst g2 = myconsole.group(myconsole.flagHead(\"G2\")); // use flag's color\nconst g3 = myconsole.group(ConsolePro.COLOR.bgBlueWithWhite, \"G3\"); // use custom color\nconst g4 = myconsole.group(\"G4\".green); // use colors api to change string color\n\nmyconsole.info(\"QAQ\");\nmyconsole.warn(\"QAQ\");\n\nmyconsole.groupEnd(g3, \"G3 IS OVER\");\nmyconsole.groupEnd(g2, \"G2 IS OVER\");\n\nmyconsole.success(\"QAQ\");\nmyconsole.error(\"QAQ\");\n\nmyconsole.groupEnd(g4, \"G4 IS OVER\");\nmyconsole.groupEnd(g1, \"G1 IS OVER\");\n```\n![image](https://user-images.githubusercontent.com/2151644/29200125-4696eabe-7e85-11e7-93cc-2b27bb7fcd10.png)\n\n# Preview\n\n## TEST1\n![image](https://user-images.githubusercontent.com/2151644/29110708-273666d4-7d1a-11e7-9f04-7cc0c29d7011.png)\n\n## TEST2\n![image](https://user-images.githubusercontent.com/2151644/29110771-71569aa4-7d1a-11e7-975d-f5c7cf1d5b42.png)\n\n## TEST3\n![image](https://user-images.githubusercontent.com/2151644/29200142-779145d8-7e85-11e7-91c7-b695afeb9483.png)\n\n# API\n\n## new(options: ConsoleOptions)\n### ConsoleOptions\n#### async_log: bool\n#### auto_reduce_indent: bool\n#### silence: bool\n\n## .flagHead(headContent :string) :string\nAutomatically fill the string.\n\n## .flagHead(headContent :string, withBG :bool) :string\nAutomatically fill the string.\n\n## group(...args): symbol\nstart an group log.\n\n## groupEnd(symbol, ...args)\nend an group.\n\n## time(...args): symbol\nstart an time log, like group, with an Timestamp.\n\n## timeEnd(symbol, ...args)\nend an time, like groupEnd, with an Timestamp and TimeSpan(ms).\n\n## Like native console\n\n### log(...args)\n\n### info(...args)\n\n### debug(...args)\n\n### warn(...args)\n\n### error(...args)\n\n### dir(object[, options])\n\n## silence(to_be_silence: bool)\nif true, All the logs will be hidden to improve performance","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaubee%2Fconsole-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaubee%2Fconsole-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaubee%2Fconsole-pro/lists"}