{"id":16939479,"url":"https://github.com/a8m/clog","last_synced_at":"2025-04-11T19:21:01.974Z","repository":{"id":21253967,"uuid":"24569523","full_name":"a8m/clog","owner":"a8m","description":"Pretty colorful cli logger for NodeJS(with table, success and more...)","archived":false,"fork":false,"pushed_at":"2014-10-16T21:39:27.000Z","size":371,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T01:22:26.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/a8m/clog","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/a8m.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":"2014-09-28T20:20:38.000Z","updated_at":"2020-08-21T14:19:39.000Z","dependencies_parsed_at":"2022-09-11T19:00:30.245Z","dependency_job_id":null,"html_url":"https://github.com/a8m/clog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fclog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fclog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fclog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fclog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a8m","download_url":"https://codeload.github.com/a8m/clog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465348,"owners_count":21108244,"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-10-13T21:04:50.239Z","updated_at":"2025-04-11T19:21:01.953Z","avatar_url":"https://github.com/a8m.png","language":"JavaScript","readme":"# clog [![Build Status](https://travis-ci.org/a8m/clog.svg?branch=master)](https://travis-ci.org/a8m/clog) [![Coverage Status](https://img.shields.io/coveralls/a8m/clog.svg)](https://coveralls.io/r/a8m/clog?branch=master)\n\n\u003e Pretty colorful cli logger for NodeJS(with table, success and more...) **v0.0.3**  \n\n![Screenshot](https://raw.githubusercontent.com/a8m/clog/master/screenshot/table.jpg)\n\n![Screenshot](https://raw.githubusercontent.com/a8m/clog/master/screenshot/logs.jpg)\n\n![Screenshot](https://raw.githubusercontent.com/a8m/clog/master/screenshot/expections.jpg)\n\n#[Installing](#installing)\n###**git**\n```bash\n$ git clone https://github.com/a8m/clog.git\n```\n###**npm**\n```bash\n$ npm install c-log --save\n```\n\n#[Usage](#usage)\n```js\nvar clog = require('c-log');\n\n//Simple logs with colors\nclog.log(\"Lorem Ipsum...\");\nclog.info(\"Lorem Ipsum...\");\nclog.warn(\"Lorem Ipsum ..\");\n\n//Success and Error\nfunction assert(expect, msg) {\n  return expect \n    ? clog.success(msg) \n    : clog.error(msg);\n}\n\n//Clog.time/timeEnd\nclog.time(\"fsRead\");\n//fake async\nsetTimeout(function(){\n  logger.timeEnd(\"fsRead\")\n},2000);\n\n//Clog.table\nvar persons = [\n  { name: 'Doris Fox', age: 20, isActive: false, balance: '$3,128.12' },\n  { name: 'Mike Loks', age: 32, isActive: true,  balance: '$12,132.1' },\n  { name: 'Arle Sher', age: 12, isActive: false, balance: '$2,968.83' }\n];\nclog.table(persons);\n/// Table Result:\n╔═════════╤═══════════╤═════╤══════════╤═══════════╗\n║ (index) │ name      │ age │ isActive │ balance   ║\n╟─────────┼───────────┼─────┼──────────┼───────────╢\n║ 0       │ Doris Fox │ 20  │ false    │ $3,128.12 ║\n╟─────────┼───────────┼─────┼──────────┼───────────╢\n║ 1       │ Mike Loks │ 32  │ true     │ $12,132.1 ║\n╟─────────┼───────────┼─────┼──────────┼───────────╢\n║ 2       │ Arle Sher │ 12  │ false    │ $2,968.83 ║\n╚═════════╧═══════════╧═════╧══════════╧═══════════╝\n```\n#[License](#license)\nMIT © [Ariel Mashraki](https://github.com/a8m)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fclog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa8m%2Fclog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fclog/lists"}