{"id":32257619,"url":"https://github.com/artyomxx/pdlog","last_synced_at":"2026-02-20T16:32:30.572Z","repository":{"id":57321583,"uuid":"98898439","full_name":"artyomxx/pdlog","owner":"artyomxx","description":"🙈 Yet another JS log module with prefixes made of a custom string and a timestamp (no deps!)","archived":false,"fork":false,"pushed_at":"2017-11-10T11:26:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T09:00:27.708Z","etag":null,"topics":["date","debug","error","javascript","js","log","module","prefix","warn"],"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/artyomxx.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":"2017-07-31T14:33:19.000Z","updated_at":"2021-12-07T14:34:29.000Z","dependencies_parsed_at":"2022-08-25T22:41:34.913Z","dependency_job_id":null,"html_url":"https://github.com/artyomxx/pdlog","commit_stats":null,"previous_names":["lolwhoami/pdlog"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/artyomxx/pdlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomxx%2Fpdlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomxx%2Fpdlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomxx%2Fpdlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomxx%2Fpdlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyomxx","download_url":"https://codeload.github.com/artyomxx/pdlog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomxx%2Fpdlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["date","debug","error","javascript","js","log","module","prefix","warn"],"created_at":"2025-10-22T19:34:44.512Z","updated_at":"2026-02-20T16:32:30.568Z","avatar_url":"https://github.com/artyomxx.png","language":"JavaScript","readme":"## pdlog\n\nYet another JS log module with prefixes made of a custom string and a timestamp.\n\n---\n\n### Installation:\n`npm i --save pdlog`\n\n### Usage:\n```js\nconst c = require('pdlog')('#WHATEVER');\nc.log('hello world');\n```\n_Output:_\n```\n[2017-07-31T15:49:57.161Z] #WHATEVER hello world\n```\n\n### Methods:\n- log()\n- error()\n- warn()\n- info()\n- debug()\n\n### Custom prefix function (well, why not!)\n```js\nconst c = require('pdlog')(() =\u003e Date.now())\nc.log('hello world');\n```\n_Output:_\n```\n685051200000 hello world\n```\n_* function's result will be used without the built-in date prefix_\n\n\n### Options:\n\n#### quiet: `\u003cfunction\u003e`\n\n**Why function?** Because you probably want to have an ability to switch it on or off dynamically.\n\n```js\nlet quietMode = false;\nconst c = require('pdlog')('quiet check', {quiet: () =\u003e quietMode});\n\nc.log('you will see this');\n\nquietMode = true;\n\nc.log('you will not see this');\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyomxx%2Fpdlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyomxx%2Fpdlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyomxx%2Fpdlog/lists"}