{"id":21108977,"url":"https://github.com/pajaydev/log-cli","last_synced_at":"2026-04-24T18:10:33.586Z","repository":{"id":42786817,"uuid":"267769109","full_name":"pajaydev/log-cli","owner":"pajaydev","description":"✨  Logger module for node cli's.","archived":false,"fork":false,"pushed_at":"2022-03-26T23:06:26.000Z","size":446,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T06:43:48.227Z","etag":null,"topics":["chalk","cli-logging","log","log-cli","logging-library","node-logger","ora"],"latest_commit_sha":null,"homepage":"","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/pajaydev.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":"2020-05-29T05:00:46.000Z","updated_at":"2025-09-06T07:02:47.000Z","dependencies_parsed_at":"2022-08-23T05:31:57.119Z","dependency_job_id":null,"html_url":"https://github.com/pajaydev/log-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pajaydev/log-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Flog-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Flog-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Flog-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Flog-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pajaydev","download_url":"https://codeload.github.com/pajaydev/log-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajaydev%2Flog-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32234888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chalk","cli-logging","log","log-cli","logging-library","node-logger","ora"],"created_at":"2024-11-20T00:49:57.356Z","updated_at":"2026-04-24T18:10:28.577Z","avatar_url":"https://github.com/pajaydev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log-cli\n[![Build Status](https://travis-ci.org/pajaydev/log-cli.svg?branch=master)](https://travis-ci.org/github/pajaydev/log-cli)\n\nA simple logger for node cli, it wraps around chalk and ora package.\n\n\n## Installation\n\n```shell\nnpm install log-cli\n```\nor\n\n```shell\nyarn add log-cli\n```\n\n## Usage:\n\n```javascript\nconst Logger = require('log-cli')\n\nconst logger = new Logger();\nlogger.log('this is normal message');\n// prints the success message in green color\nlogger.success('this is success message');\n// prints the message with the default prefix\nlogger.success('this is success message', true);\n```\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./log-input.png\" height=\"280\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"center\" id=\"image\" src=\"./log-output.png\" height=\"200\"\u003e\n\u003c/p\u003e\n\n## Examples\n- [click here](https://github.com/pajaydev/log-cli/blob/master/example.js)\n\n## Methods\n\n```\nwarn, success, error, log, info, bold, spin, spinStart, spinStop\n```\n\n\n### Change the default colors of logging\n\nDefault color mapping\n```json\n{\n    \"error\": \"red\",\n    \"info\": \"cyan\",\n    \"warn\": \"yellow\",\n    \"success\": \"green\"\n}\n```\n\nYou can override colors using the `setColor` method like below\n\n```javascript\nlogger.setColor({info: 'grey'});\n```\n\n## credits.\n\n - [Chalk](https://www.npmjs.com/package/chalk)\n - [Ora](https://www.npmjs.com/package/ora)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpajaydev%2Flog-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpajaydev%2Flog-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpajaydev%2Flog-cli/lists"}