{"id":50788214,"url":"https://github.com/peterbenoit/consoul.js","last_synced_at":"2026-06-12T09:32:44.043Z","repository":{"id":357564412,"uuid":"865036118","full_name":"peterbenoit/consoul.js","owner":"peterbenoit","description":"Consoul.js is your personal console logging superhero. 🦸‍♂️ Whether you're debugging or trying to track how your code runs, Consoul.js takes ordinary logging and transforms it into a fully equipped, feature-packed experience.","archived":false,"fork":false,"pushed_at":"2024-09-29T20:35:13.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-13T10:49:32.933Z","etag":null,"topics":["console","fancy","logging","styled"],"latest_commit_sha":null,"homepage":"https://codepen.io/peterbenoit/pen/abevWMz","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/peterbenoit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-29T20:14:21.000Z","updated_at":"2024-11-23T13:40:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/peterbenoit/consoul.js","commit_stats":null,"previous_names":["peterbenoit/consoul.js"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/peterbenoit/consoul.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fconsoul.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fconsoul.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fconsoul.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fconsoul.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterbenoit","download_url":"https://codeload.github.com/peterbenoit/consoul.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fconsoul.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34238713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["console","fancy","logging","styled"],"created_at":"2026-06-12T09:32:43.465Z","updated_at":"2026-06-12T09:32:44.033Z","avatar_url":"https://github.com/peterbenoit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Consoul.js Documentation\n\n## What is **Consoul.js**?\n\n**Consoul.js** is your personal console logging superhero. 🦸‍♂️ Whether you're debugging or trying to track how your code runs, **Consoul.js** takes ordinary logging and transforms it into a fully equipped, feature-packed experience. From log levels to styling, log history, and even browser output, **Consoul.js** has you covered!\n\n### Why use **Consoul.js**?\nLogging in JavaScript is so much more than just `console.log(\"Hello World\")`. Here’s why **Consoul.js** can level up your logging game:\n\n- **🎚 Custom Log Levels:** Control what gets logged based on importance. Set it to DEBUG, INFO, WARN, or ERROR and see just the logs you need.\n\n- **🎨 Styled Logs:** Want to add a little flair to your logs? Customize them with icons and styles (e.g., ✅ for success, ⚠️ for warnings, ❌ for errors).\n\n- **📜 Log History \u0026 Count:** Keep track of every log made during your session. Need to look back on what happened? **Consoul.js** has you covered with a full log history and the total log count.\n\n- **⏱ Performance Monitoring:** Easily benchmark your code by measuring how long functions take to run. Perfect for tracking down bottlenecks and optimizing performance.\n\n---\n\n### 🚀 Installation\n\nJust clone this repo and start using it! 🎉\n\n\n---\n\n### 📖 Usage Examples\n\n```javascript\n// Enable browser output (optional)\nconsoul.setBrowserOutput(true, '#custom-console');\n\n// Log messages at different levels\nconsoul.log(\"This is a standard log message.\");\nconsoul.debug(\"This is a debug message.\");\nconsoul.warn(\"This is a warning message.\");\nconsoul.error(\"This is an error message.\");\n\n// Fancy logging\nconsoul.fancylog(\"Fancy log message with custom styling!\", \"Additional details here.\");\n\n// Benchmarking example\nconsoul.benchmark(() =\u003e {\n    // Code you want to measure\n}, \"Performance Test\");\n```\nAdditional advanced features can be found on [Codepen](https://codepen.io/peterbenoit/pen/abevWMz \"Codepen\") 🔗\n\n---\n\n### 🎯 Key Features\n\n- **Log Levels**: Filter logs by severity.\n- **Styled Logs**: Add icons and colors to make logs pop.\n- **Log History**: Keep track of all log messages and retrieve them when needed.\n- **Conditional Logging**: Log only when a specific condition is met.\n- **Function Benchmarking**: Time how long a function takes to execute.\n\n---\n\n### 🧑‍💻 Contribution\n\nFeel free to contribute to **Consoul.js**! Fork the repo, create a branch, and submit a PR with improvements or bug fixes. We welcome your awesome ideas.\n\n---\n\n### License\n\n**Consoul.js** is open-source and licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterbenoit%2Fconsoul.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterbenoit%2Fconsoul.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterbenoit%2Fconsoul.js/lists"}