{"id":22119549,"url":"https://github.com/sectly/logcon","last_synced_at":"2026-04-19T14:02:51.044Z","repository":{"id":60929812,"uuid":"546855774","full_name":"Sectly/logcon","owner":"Sectly","description":"Logcon is an free to use JavaScript library that provides nice console.log output with icons, tables and colors!","archived":false,"fork":false,"pushed_at":"2022-10-13T10:43:51.000Z","size":109,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T00:39:59.170Z","etag":null,"topics":["ascii","color","console","javascript","log","logger","logs","nodejs","npm","table","terminal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sectly.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-10-06T19:01:50.000Z","updated_at":"2024-02-18T23:39:27.000Z","dependencies_parsed_at":"2023-01-19T21:59:09.050Z","dependency_job_id":null,"html_url":"https://github.com/Sectly/logcon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sectly%2Flogcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sectly%2Flogcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sectly%2Flogcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sectly%2Flogcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sectly","download_url":"https://codeload.github.com/Sectly/logcon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245219042,"owners_count":20579526,"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":["ascii","color","console","javascript","log","logger","logs","nodejs","npm","table","terminal"],"created_at":"2024-12-01T14:15:09.725Z","updated_at":"2025-10-23T15:26:55.136Z","avatar_url":"https://github.com/Sectly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logcon\r\nLogcon is an free to use JavaScript library that provides nice console.log output with icons, tables and colors!\r\n\r\nNPM: `npm i logcon` [(NPM Package)](https://www.npmjs.com/package/logcon)\r\n\r\nContact Me: https://www.sectly.online/#contact\r\n\r\n```js\r\nconst logcon = require(\"logcon\");\r\n\r\nlogcon.warn(\"This is a warning!\");\r\n\r\nlogcon.error(\"This is a error!\");\r\n\r\nlogcon.log(\"This is a log!\");\r\n\r\nlogcon.debug(\"This is a debug!\");\r\n\r\nlogcon.success(\"This is a success!\");\r\n\r\nlogcon.stress(\"This is a stress!\");\r\n\r\nlogcon.info(\"This is a info!\");\r\n\r\nlogcon.output(\"This is a output!\");\r\n```\r\n\r\n![Preview Image](https://github.com/Sectly/logcon/blob/main/screenshots/logcon_example_1.png?raw=true)\r\n\r\n## New Since 1.0.3: Tables And More API Functions!\r\n\r\n### Tables:\r\n\r\n```js\r\nconst logcon = require(\"logcon\");\r\n\r\nconst header = [\"Id:\", \"Name:\", \"Status:\"];\r\nconst body = [\r\n  [\"#1\", \"Sectly\", \"Online\", \"Working On Stuff\"], \r\n  [\"#2\", \"Mike\", \"Idle\"],\r\n  [\"#3\", \"Dan\", \"Offline\"]\r\n];\r\n \r\nlet newtable = new logcon.Table(header, body);\r\nnewtable.log(3); // Colors: 0 = Default, 1 = Red, 2 = Green, 3 = Yellow, 4 = Blue, 5 = Purple, 6 = Dark Blue, 7 = White, 8 = Whiteish. (Default = White)\r\n\r\nnewtable.setHeader([\"Id:\", \"Name:\", \"Status:\", \"Extra:\"]); // Set Header\r\nnewtable.appendBody([\"#2\", \"Mike\", \"Idle\"]); // Append Body\r\nnewtable.setBody([[\"#3\", \"Dan\", \"Offline\"]]); // Set Body\r\nconst tableArray = newtable.array(); // Convert To Array\r\nconst tableString = newtable.string(); // Convert To String\r\nnewtable.log(); // Log In Console, Defaults To The Default Color With No Color Input\r\nnewtable.reset(); // Clear/Reset The Table\r\n\r\nnewtable.reset()\r\n  .setHeader([\"Id:\", \"Name:\", \"Status:\"])\r\n  .appendBody([\"#1\", \"Sectly\", \"Online\", \"Working On Stuff\"]);\r\n\r\nlet string = newtable.string();\r\n\r\nconsole.log(string); // Or logcon.debug(\"Logcon Table:\\n\" + string);\r\n```\r\n\r\n![Preview Image](https://github.com/Sectly/logcon/blob/main/screenshots/logcon_example_2.png?raw=true)\r\n\r\n### API Functions:\r\n\r\n```js\r\nconst logcon = require(\"logcon\");\r\n\r\nconst color = logcon.color(4); // Colors: 0 = Default, 1 = Red, 2 = Green, 3 = Yellow, 4 = Blue, 5 = Purple, 6 = Dark Blue, 7 = White, 8 = Whiteish. (Default = White)\r\nconsole.log(color + \"Hello!\" + logcon.color(7));\r\n\r\nconst icon = logcon.icon(4); // Icons: 0 = ×, 1 = √, 2 = ‼, 3 = i, 4 = ⟫, 5 = », 6 = \u003e, 7 = ?, 8 = ›\r\nconsole.log(\"[\" + icon + \"]\", logcon.icon(1));\r\n\r\nconst logger = logcon.type(7); // Types: 1 = Error, 2 = Success, 3 = Warn, 4 = Info, 5 = Stress, 6 = Debug, 7 = Log, 8 = Output.\r\n\r\nlogger(\"Logcon Time!\");\r\n```\r\n\r\n![Preview Image](https://github.com/Sectly/logcon/blob/main/screenshots/logcon_example_3.png?raw=true)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectly%2Flogcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectly%2Flogcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectly%2Flogcon/lists"}