{"id":19338794,"url":"https://github.com/fizzygalacticus/colored-fancy-log","last_synced_at":"2026-05-13T01:34:25.918Z","repository":{"id":35071222,"uuid":"203276392","full_name":"FizzyGalacticus/colored-fancy-log","owner":"FizzyGalacticus","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-12T12:33:41.000Z","size":88,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T12:08:39.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/FizzyGalacticus.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":"2019-08-20T01:26:54.000Z","updated_at":"2019-08-20T01:27:32.000Z","dependencies_parsed_at":"2022-08-08T04:16:09.405Z","dependency_job_id":null,"html_url":"https://github.com/FizzyGalacticus/colored-fancy-log","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/FizzyGalacticus%2Fcolored-fancy-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2Fcolored-fancy-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2Fcolored-fancy-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2Fcolored-fancy-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FizzyGalacticus","download_url":"https://codeload.github.com/FizzyGalacticus/colored-fancy-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240441992,"owners_count":19801806,"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":[],"created_at":"2024-11-10T03:18:43.142Z","updated_at":"2026-05-13T01:34:25.883Z","avatar_url":"https://github.com/FizzyGalacticus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colored-fancy-log\n\nfancy-log but with colors!\n\nUses [fancy-log](https://www.npmjs.com/package/fancy-log) and [colors](https://www.npmjs.com/package/colors) to create time-stamped, colored, and (optionally) named loggers.\n\n## Installation\n\nUsing `npm`:\n```sh\nnpm i --save @fizzygalacticus/colored-fancy-log\n```\n\nUsing `yarn`:\n```sh\nyarn add --save @fizzygalacticus/colored-fancy-log\n```\n\n## Usage\n\nBy default, colored-fancy-log exports a logger with no name to be used immediately:\n\n```js\nconst logger = require('@fizzygalacticus/colored-fancy-log');\n\nlogger.success('Hello, world!');\n```\n\nOutput:\n\n![output-1](https://i.imgur.com/yOknIn2.png)\n\nTo name a logger:\n```js\nconst { getLogger } = require('@fizzygalacticus/colored-fancy-log');\nconst logger = getLogger({ name: 'test-logger' });\n\nlogger.success('Hello, world!');\n```\n\nOutput:\n\n![output-2](https://i.imgur.com/jrQu7TO.png)\n\nDon't like the default name \u003c-\u003e message separator? You can change that too!\n\n```js\nconst { getLogger } = require('@fizzygalacticus/colored-fancy-log');\nconst logger = getLogger({ name: 'test-logger', separator: '=\u003e' });\n\nlogger.success('Hello, world!');\n```\n\nOutput:\n\n![output-3](https://i.imgur.com/H98YhYp.png)\n\n## Available Functions\n\n| Name          | Output                                              |\n| ------------- | --------------------------------------------------- |\n| `log`         | ![log-example](https://i.imgur.com/eJqUO5X.png)     |\n| `info`        | ![info-example](https://i.imgur.com/Nv7MmvD.png)    |\n| `lame`        | ![lame-example](https://i.imgur.com/xJKeHVU.png)    |\n| `success`     | ![success-example](https://i.imgur.com/lnFZCIb.png) |\n| `warn`        | ![warn-example](https://i.imgur.com/vBV0XXj.png)    |\n| `error`       | ![error-example](https://i.imgur.com/yUyrbws.png)   |\n| `evil`        | ![evil-example](https://i.imgur.com/B8bjqKn.png)    |\n| enable        | Sets logger to enabled                              |\n| disable       | Sets logger to disabled (won't print anything)      |\n| toggleEnabled | Toggles loggers `enabled` variable                  |\n| setEnabled    | Sets loggers `enabled` variable                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffizzygalacticus%2Fcolored-fancy-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffizzygalacticus%2Fcolored-fancy-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffizzygalacticus%2Fcolored-fancy-log/lists"}