{"id":22934266,"url":"https://github.com/yarivgilad/marker","last_synced_at":"2025-08-12T17:32:16.656Z","repository":{"id":40244856,"uuid":"164196114","full_name":"YarivGilad/marker","owner":"YarivGilad","description":"A simple color logging utility for your node.js console.","archived":false,"fork":false,"pushed_at":"2022-05-18T14:05:39.000Z","size":732,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T09:48:22.023Z","etag":null,"topics":["ansi","cli","color","colors","colour","colours","command-line","command-line-tool","console","formatting","log","logger","logging","logging-library","rgb","shell","style","styles","terminal","tty"],"latest_commit_sha":null,"homepage":"","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/YarivGilad.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":"2019-01-05T08:23:05.000Z","updated_at":"2024-09-26T08:36:11.000Z","dependencies_parsed_at":"2022-08-22T23:10:29.126Z","dependency_job_id":null,"html_url":"https://github.com/YarivGilad/marker","commit_stats":null,"previous_names":["ajar-ajar/marker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YarivGilad%2Fmarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YarivGilad%2Fmarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YarivGilad%2Fmarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YarivGilad%2Fmarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YarivGilad","download_url":"https://codeload.github.com/YarivGilad/marker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229699862,"owners_count":18109851,"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":["ansi","cli","color","colors","colour","colours","command-line","command-line-tool","console","formatting","log","logger","logging","logging-library","rgb","shell","style","styles","terminal","tty"],"created_at":"2024-12-14T11:39:28.427Z","updated_at":"2024-12-14T11:39:28.962Z","avatar_url":"https://github.com/YarivGilad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![marker](https://badgen.net/npm/v/@ajar/marker)](https://www.npmjs.com/package/@ajar/marker)\n[![marker](https://badgen.net/npm/dt/@ajar/marker)](https://www.npmjs.com/package/@ajar/marker)\n[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)\n[![jest](https://img.shields.io/bundlephobia/min/@ajar/marker.svg)](https://www.npmjs.com/package/@ajar/marker)\n\n\n# Marker \nA simple color logging utility for your node.js console.\n\n[![Marker](https://raw.githubusercontent.com/Ajar-Ajar/marker/master/marker.png)](https://www.npmjs.com/package/@ajar/marker)\n\n## installation\n```\nnpm i @ajar/marker\n```\n## Features\n1. colored logs  - by level, level shorthand or explicit colors\n2. prefix logs with file name and line number\n3. prints complex objects\n4. smart error logs - \n\n   logs error message and stack  \n   ignores node_modules and node internals to focus on your own code\n\n## CommonJS\n```javascript\nconst marker = require('@ajar/marker'); \n```\n\n## ES6 modules\n```javascript\nimport marker from '@ajar/marker'; \n```\n\n## Usage\n```javascript\nmarker.info('hello','marker'); \n```\n\n## Examples\n```javascript\n//by levels  \n\nmarker.verbose('verbose','is explicit');\nmarker.debug('debug','is common');\nmarker.info('info','is trivial');  \nmarker.warn('warn','is important');  \nmarker.err('err','is critical'); \n\n//by levels shorthand\n\nmarker.v('v','is short for verbose');    \nmarker.d('d','is short for debug');     \nmarker.i('i','is short for info');     \nmarker.w('w','is short for warn');     \nmarker.e('e','is short for err');  \n\n//by color names\n\nmarker.blue('blue','ocean');       \nmarker.magenta('magenta','is lighter then purple');    \nmarker.cyan('cyan','is lighter then blue');       \nmarker.green('green','peace');      \nmarker.yellow('yellow','mellow');     \nmarker.red('red','tape');        \n   \n// .obj()\nconst complex_object = {\n    one:1,\n    two:2,\n    internal:{\n        a:'first',\n        b:'second',\n        nested:{\n            key:'value',\n            some:'thing',\n            fruits:['apple','orange','banana'],\n            types:[{str:'one',int:2,bool:false,empty:null}]\n        }\n    },\n    three:3,\n    four:4\n}\n/**\n * Use .obj() to log complex objects\n * @param { Object } obj - the Object to log \n * @param { string } label - optional label \n */\nmarker.obj(complex_object,'This is a complex_object');\n\n/**\n * use .error() to log errors\n * @param { Error } - an Error object to log\n */\ntry{\n    define('is not defind')\n}catch(err){\n    marker.error(err)\n}\n```\n\n## Example output\n\u003cimg src=\"https://raw.githubusercontent.com/Ajar-Ajar/marker/master/screetshot.png\" width=\"800\" alt=\"Example output\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarivgilad%2Fmarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyarivgilad%2Fmarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarivgilad%2Fmarker/lists"}