{"_id":"kliedz","_rev":"12-fc5bf54740b0d3bc015eb6e81613fc91","name":"kliedz","dist-tags":{"latest":"2.2.1"},"versions":{"1.0.1":{"name":"kliedz","version":"1.0.1","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@1.0.1","maintainers":[{"name":"bodrovis","email":"golosizpru@gmail.com"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"0d9a069b67974780b417823cefc6c29425a5141a","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-1.0.1.tgz","fileCount":33,"integrity":"sha512-1ZrnP/QWJyMxV+5joeAdRtju45POKg2njPC6V1u8CMWmCbWHbC69rRBwbUjw52ngwq/N/xlcxnTu+x9mCmbNnw==","signatures":[{"sig":"MEUCIFXU69KXfBDbQn1jjdOlTPUsvrOSEYQ6KoZvIC9boPx7AiEAqyWmAYrTx07I6eTjDciD5cstqTcOv5AlXTRsITr5c94=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52738},"type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":"./dist/index.js","gitHead":"72d96eb883e32aeb6e1f367c8e0c60a0de3bfebc","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"rimraf dist && tsup","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"golosizpru@gmail.com"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.3.0","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"24.0.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","rimraf":"^6.0.1","vitest":"^3.0.3","typescript":"^5.8.2","@types/node":"^22.0.2","@biomejs/biome":"^1.9.0","@vitest/coverage-istanbul":"^3.0.3"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_1.0.1_1746985095124_0.43627468640049916","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"kliedz","version":"1.1.0","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@1.1.0","maintainers":[{"name":"bodrovis","email":"golosizpru@gmail.com"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"a8fecae15cd3e467797a637fe18fef9fa16874b4","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-1.1.0.tgz","fileCount":34,"integrity":"sha512-EFj/Dh9XR6xbkfPnPrHYp5irXOeCrfsPectgXBBoJScD3xj9/mqV5FPIQ5geCUDb/g8MqeKTDVVc1bXfyFJrdw==","signatures":[{"sig":"MEYCIQCevTgFsr+KqzZ6jIBYc73y3VV2kI4uxXou1I8MHBVjSQIhAPofsGcxKkZJr7jJA/QDnldot1wBFf3o92XKr/DeJ5lq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68436},"type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":"./dist/index.js","gitHead":"51dac08538bcc7e44cb23792e6a6abbd64f38510","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsup","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"golosizpru@gmail.com"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.6.1","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"24.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^3.0.3","typescript":"^5.8.2","@types/node":"^24.0.7","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_1.1.0_1759759449880_0.292856994180541","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"kliedz","version":"2.0.0","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@2.0.0","maintainers":[{"name":"bodrovis","email":"golosizpru@gmail.com"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"d5fbf971723947f4dcfca5b98c3eea8cdcf0bfcb","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.0.0.tgz","fileCount":35,"integrity":"sha512-g2cph1/6c1P06N1ePrTmuwT4yddIardNOKTgauGv/U29ll1HwpIFNIyHMIknm9wZxBucSy8aev/WiZbpFHJWJQ==","signatures":[{"sig":"MEYCIQD8yi9x0xHtPzu/pWGOcPGvdkBYfSBdrJYy8NSBOqUqrwIhAJjo4Crx+p5/IGheOXyUYQP4nUKO4C84gtSdIANS4CD4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68627},"type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":"./dist/index.js","gitHead":"06ca2f42ac8d01a5579db4ee17929ecd08d493ac","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsup","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"golosizpru@gmail.com"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.6.2","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"25.2.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^4.0.6","typescript":"^5.8.2","@types/node":"^25.0.3","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_2.0.0_1766004692452_0.7541478853541563","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"kliedz","version":"2.1.0","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@2.1.0","maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"a1835d2576666fd3727e3798b65ba422a2621456","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.1.0.tgz","fileCount":35,"integrity":"sha512-JqCS+1fGH10qHoKeW0VqudswAxJ1wUmXUGav+K1Qw/DDGArUXxQl0pwkvHwP2xgL1jorwkGEYJO0WIU8vu6TGA==","signatures":[{"sig":"MEUCIQDYD+2P4xPSjIrvW+wnY3fre4aigipXArcYVQDNiX5/EAIgEDxcs/rul0eObGc+XIxi+ITA3bG2FG0oXlLvYoGRH/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72062},"type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":"./dist/index.js","gitHead":"c6c1e81543804cf0b560170c5080fbbcd93d570d","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsdown","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"elskruk@proton.me"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.12.1","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.4","vitest":"^4.0.6","typescript":"^6.0.2","@types/node":"^25.0.3","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_2.1.0_1775478039557_0.6264890174451816","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"kliedz","version":"2.1.1","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@2.1.1","maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"7ba2f9692959326dd6931957848ba21bdba4d07a","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.1.1.tgz","fileCount":35,"integrity":"sha512-LOBUNWiupo75I2rb0JgGR5YbuEXfUu3MNOCDgscs6XszWOWd3Pd1Lmga9VAbloMxncKXBD+RKsmVyF6XYSYTDw==","signatures":[{"sig":"MEUCIFqQ9YFK5rWB86DdPXH3CSuE5QIhjAdvY1m6H2TBR/stAiEAnPEcaUH4xrRPgK1SSJ8YP4n1sknMRwNzJXBWT3lpwAY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72110},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=20"},"exports":"./dist/index.mjs","gitHead":"c6c1e81543804cf0b560170c5080fbbcd93d570d","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsdown","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"elskruk@proton.me"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.12.1","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.4","vitest":"^4.0.6","typescript":"^6.0.2","@types/node":"^25.0.3","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_2.1.1_1775478583223_0.7024910974195877","host":"s3://npm-registry-packages-npm-production"}},"2.1.2":{"name":"kliedz","version":"2.1.2","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@2.1.2","maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"d72a14939f3209a5639fdf4781658ccf3070d95c","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.1.2.tgz","fileCount":35,"integrity":"sha512-ri54JfG+/cIeSwY3LUI5l6pt5dBDXgcuF5uTZsI8HHePLVCZ260FUIkK39h174J8MMWZ5yvGPW72++bZ/LE6+A==","signatures":[{"sig":"MEUCIGRGOOGT1QQMe4S5GrgLm7nxEGClSqexxc5LpH8twzBaAiEAizH2Rc3VrNS9ORWX7E+woD/fSCJNZseYDeAHtk1EsGc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72062},"type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":"./dist/index.js","gitHead":"3c56755872d21edd26cb834309da5f08b08a6fe6","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsdown","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"elskruk@proton.me"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.13.0","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"25.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.4","vitest":"^4.0.6","typescript":"^6.0.2","@types/node":"^25.0.3","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_2.1.2_1777635765688_0.21135974749521313","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"kliedz","version":"2.1.3","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@2.1.3","maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"759a45c30af4a3a0c1d6f26c2c5c4a9334ac9a08","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.1.3.tgz","fileCount":35,"integrity":"sha512-Hk2ERZZddAsCBZzVKVUyIGxxv4e961tOgjY+PBAmxkRKNi0eC+qJKaWSXQfzTDjQ1lb7j/v2dZS8UDeyDKXeXg==","signatures":[{"sig":"MEQCIFGd63k0zaRAidIfSXbt+3i8ant6InCKPdHLIjd9L44aAiBC8yLOvKRV3+PeLoVbHq9d4ZqWuO2Jjmz/Xw0TpABYpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72145},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=20"},"exports":{".":"./dist/index.mjs"},"gitHead":"e51159bff24fd3450ffd7d5ea546e9492774a187","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsdown","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"elskruk@proton.me"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"11.13.0","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{"lib":"./src","test":"./test"},"_nodeVersion":"25.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.21.4","vitest":"^4.0.6","typescript":"^6.0.2","@types/node":"^25.0.3","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_2.1.3_1777635970485_0.4554463523258947","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"kliedz","version":"2.2.0","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"author":{"name":"Ilya Krukowski"},"license":"MIT","_id":"kliedz@2.2.0","maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"homepage":"https://github.com/bodrovis/kliedz","bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"dist":{"shasum":"bf440aaaf0ce0ecd52fa3018290be0a0346cba60","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.2.0.tgz","fileCount":6,"integrity":"sha512-bRhfecD3R3icT/rknIVIjyDqp9bWS9JEHGd1tcCoqrv1kwpVYm/S15PZsm0nMu2DJCc39i1T6TxRTBSB0GmquQ==","signatures":[{"sig":"MEQCIHqQf0FwArUzGLARlK3tjOQ+tmplcyiAoZgBU/y4Ejm+AiAP3U0Vs2YHZ0KNODKXEaPfPoeUm1hoqEQosGfUZ5ci0A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35641},"type":"module","types":"./dist/index.d.mts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"gitHead":"1951ad7b287c5ad50fb7307c7e4770157688bed2","scripts":{"lint":"npx @biomejs/biome check ./","test":"vitest run","build":"tsdown","lint:fix":"npx @biomejs/biome check --write ./","test:watch":"vitest watch","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./"},"_npmUser":{"name":"bodrovis","email":"elskruk@proton.me"},"repository":{"url":"git+https://github.com/bodrovis/kliedz.git","type":"git"},"_npmVersion":"12.0.1","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","directories":{},"_nodeVersion":"26.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.0","vitest":"^4.0.6","typescript":"^7.0.2","@types/node":"^26.1.0","@biomejs/biome":"^2.0.6","@vitest/coverage-v8":"^4.0.6"},"_npmOperationalInternal":{"tmp":"tmp/kliedz_2.2.0_1783952233631_0.6336536945098237","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"kliedz","version":"2.2.1","description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bodrovis/kliedz.git"},"type":"module","scripts":{"build":"tsdown","test":"vitest run","test:watch":"vitest watch","lint":"npx @biomejs/biome check ./","lint:fix":"npx @biomejs/biome check --write ./","lint:fix:unsafe":"npx @biomejs/biome check --write --unsafe ./","typecheck":"tsc -p tsconfig.test.json --noEmit"},"devDependencies":{"@biomejs/biome":"^2.0.6","@types/node":"^26.1.0","@vitest/coverage-v8":"^4.0.6","tsdown":"^0.22.0","typescript":"^7.0.2","vitest":"^4.0.6"},"bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"homepage":"https://github.com/bodrovis/kliedz","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"types":"./dist/index.d.mts","author":{"name":"Ilya Krukowski"},"publishConfig":{"access":"public"},"keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"engines":{"node":">=20"},"gitHead":"7b66d0038acd5987c63697f456a33e62ebf1cf02","_id":"kliedz@2.2.1","_nodeVersion":"26.7.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-DI/3igPfecqsjGFdFHQXms6ehEKgYMXYU/ySVw9eTCUEwjGN3WtN6YNp7DNQNnIHo63cfrrF+gTS9Xk1oe9bVg==","shasum":"aadbb8853f2eef65c76017b04dec6a167097c763","tarball":"https://registry.npmjs.org/kliedz/-/kliedz-2.2.1.tgz","fileCount":6,"unpackedSize":35804,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCObjiSwaxR4zoiRV3lOHh4f/HQ0FQU/EOCDnU0A93TjwIhAMMTKH3PgMsT83247Ye7QhcdNX0IE7vL183DLUL8LNdF"}]},"_npmUser":{"name":"bodrovis","email":"elskruk@proton.me"},"directories":{},"maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kliedz_2.2.1_1788363415250_0.583376601138919"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-11T17:38:15.012Z","modified":"2026-09-02T15:36:55.703Z","1.0.0":"2025-05-09T16:33:40.053Z","1.0.1":"2025-05-11T17:38:15.347Z","1.1.0":"2025-10-06T14:04:10.069Z","2.0.0":"2025-12-17T20:51:32.601Z","2.1.0":"2026-04-06T12:20:39.717Z","2.1.1":"2026-04-06T12:29:43.368Z","2.1.2":"2026-05-01T11:42:45.837Z","2.1.3":"2026-05-01T11:46:10.627Z","2.2.0":"2026-07-13T14:17:13.770Z","2.2.1":"2026-09-02T15:36:55.396Z"},"bugs":{"url":"https://github.com/bodrovis/kliedz/issues"},"author":{"name":"Ilya Krukowski"},"license":"MIT","homepage":"https://github.com/bodrovis/kliedz","keywords":["logger","logging","log-level","stateless","functional","typescript","javascript","console","minimal","lightweight","pure","no-dependencies"],"repository":{"type":"git","url":"git+https://github.com/bodrovis/kliedz.git"},"description":"Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.","maintainers":[{"name":"bodrovis","email":"elskruk@proton.me"}],"readme":"# Kliedz\r\n\r\n![npm](https://img.shields.io/npm/v/kliedz)\r\n![CI](https://github.com/bodrovis/kliedz/actions/workflows/ci.yml/badge.svg)\r\n[![NPM Downloads][npm-downloads-image]][npm-downloads-url]\r\n[![Code Coverage][coverage-image]][coverage-url]\r\n[![Maintainability][maintainability-image]][maintainability-url]\r\n\r\n**Kliedz** is a stateless logging utility for JavaScript and TypeScript written with functional approach.\r\n\r\n## Installation\r\n\r\n```\r\nnpm install kliedz\r\n```\r\n\r\n## What is this?\r\n\r\nThis is a simple logging system for JS/TS. It lets you conditionally log messages based on a configured log level — without storing state, mutating anything, or pulling in extra dependencies.\r\n\r\nIt works around two main concepts: **level** and **threshold**.\r\n\r\n### `level`\r\n\r\nThe severity of the message you're logging that also determines how the message is printed (which `console` method is used):\r\n\r\n- `debug` → `console.log()`\r\n- `info`  → `console.info()`\r\n- `warn`  → `console.warn()`\r\n- `error` → `console.error()`\r\n\r\n### `threshold`\r\n\r\nA cutoff filter: only messages with `level >= threshold` will be printed. Think of `threshold` as the minimum severity required to be shown. This is useful when log visibility is controlled by a user or environment (e.g. `--verbose`).\r\n\r\nSupported values:\r\n\r\n- `debug` → everything logs\r\n- `info` → skips only `debug` (default)\r\n- `warn` → logs only `warn` and `error`\r\n- `error` → logs only `error`\r\n- `silent` → disables all logging\r\n\r\n## Usage\r\n\r\n```js\r\nimport { logWithColor, logWithLevel } from \"kliedz\";\r\n\r\n// Quick start\r\nlogWithColor(\"Hey!\");\r\nlogWithLevel({ level: \"warn\" }, \"Something feels off\");\r\n\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n// Basic \"just log it\" call (uses default level = \"info\", threshold = \"info\")\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n\r\nlogWithColor(\"Hello from the default logger\");\r\n// [INFO] Hello from the default logger\r\n// printed in cyan color\r\n\r\nlogWithLevel(\"Just a plain info message\", 42);\r\n// [INFO] Just a plain info message 42\r\n// printed without color\r\n\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n// Fully configured log call\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n\r\nlogWithColor(\r\n  {\r\n    level: \"warn\", // threshold, is optional, defaults to \"info\"\r\n  },\r\n  \"This is a warning with color\"\r\n);\r\n// [WARN] This is a warning with color\r\n// printed in orange\r\n\r\nlogWithLevel(\r\n  {\r\n    level: \"debug\",\r\n    threshold: \"debug\",\r\n  },\r\n  \"Low-level debug info\"\r\n);\r\n// [DEBUG] Low-level debug info\r\n// printed without color\r\n\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n// Including a timestamp in the prefix\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n\r\nlogWithColor(\r\n  {\r\n    level: \"error\",\r\n    threshold: \"debug\",\r\n    withTimestamp: true,\r\n  },\r\n  \"Error occurred!\",\r\n);\r\n// 2025-05-10T13:52:59.845Z [ERROR] Error occurred!\r\n\r\nlogWithLevel(\r\n  {\r\n    level: \"info\",\r\n    threshold: \"debug\",\r\n    withTimestamp: true,\r\n  },\r\n  \"Startup complete\"\r\n);\r\n// 2025-05-10T13:53:15.240Z [INFO] Startup complete\r\n\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n// With a custom prefixBuilder\r\n// ─────────────────────────────────────────────────────────────────────────────\r\n\r\nlogWithLevel(\r\n  {\r\n    level: \"info\",\r\n    threshold: \"debug\",\r\n    prefixBuilder: () => \">>> INFO <<<\",\r\n  },\r\n  \"Using a custom prefix builder\"\r\n);\r\n// >>> INFO <<< Using a custom prefix builder\r\n\r\nlogWithColor(\r\n  {\r\n    level: \"warn\",\r\n    prefixBuilder: () => {\r\n      const ts = new Date().toISOString();\r\n      return `!!${ts}[WARNING]!!`;\r\n    },\r\n  },\r\n  \"Custom warning with timestamped prefix\"\r\n);\r\n// !!2025-05-10T14:03:32.302Z[WARNING]!! Custom warning with timestamped prefix\r\n```\r\n\r\n## How it works\r\n\r\nThis package provides two main logging functions:\r\n\r\n- **`logWithLevel()`** – logs plain messages (no colors)\r\n- **`logWithColor()`** – logs messages with ANSI-colored `[LEVEL]` prefixes\r\n\r\nBoth functions use the same core logic under the hood. You can call them in two ways:\r\n\r\n### Option 1: Just log something (default config)\r\n\r\nIf you just want to log without caring about configuration:\r\n\r\n```ts\r\nlogWithColor(\"hello world\");\r\nlogWithLevel(\"something happened\", { id: 123 });\r\n```\r\n\r\nThis uses default settings:\r\n\r\n- `level`: `\"info\"`\r\n- `threshold`: `\"info\"` (so messages with level `\"info\"`, `\"warn\"`, or `\"error\"` will be printed)\r\n\r\n### Option 2: Log with full control\r\n\r\nIf you need to configure how a message is treated, pass a `LogParams` object as the first argument:\r\n\r\n```ts\r\nlogWithColor(\r\n  { level: \"warn\", threshold: \"debug\", withTimestamp: true },\r\n  \"warning issued\"\r\n);\r\n\r\nlogWithLevel(\r\n  { level: \"debug\", threshold: \"warn\" },\r\n  \"this will be filtered out\"\r\n);\r\n```\r\n\r\nYou can control:\r\n\r\n- `level`: The severity of the current message (`\"debug\"`, `\"info\"`, `\"warn\"`, `\"error\"`)\r\n- `threshold`: The cutoff level. Only messages with `level >= threshold` are printed.\r\n- `withTimestamp`: If true, includes an ISO timestamp in the prefix.\r\n- `prefixBuilder`: Optional function to fully customize the prefix format.\r\n\r\n## Creating custom logger\r\n\r\nIt's possible to create a new logger with a custom formatting logic. For example:\r\n\r\n```js\r\nimport { createLogger, getPrefix, formatArg } from \"kliedz\";\r\nimport type { Formatter, FormatterConfig } from \"kliedz\";\r\n\r\n// Define a custom formatter\r\nconst jsonFormatter: Formatter = (config: FormatterConfig): string => {\r\n  const prefix = getPrefix(config); // builds [LEVEL] or timestamped prefix\r\n\r\n  // config.args contains one or multiple values to log\r\n  // Create your message, optionally use formatArg to format these arguments\r\n  const message = config.args.map(formatArg).join(\" \"); \r\n\r\n  // Return final string to log\r\n  return JSON.stringify({\r\n    timestamp: new Date().toISOString(),\r\n    level: config.level,\r\n    prefix,\r\n    message,\r\n  });\r\n};\r\n\r\n// Create logger with formatter\r\nconst logJson = createLogger(jsonFormatter);\r\n\r\n// Use it, optionally providing level and threshold\r\nlogJson(\"This is a default info log\");\r\nlogJson({ level: \"warn\" }, \"Something might be wrong\", { id: 123 });\r\nlogJson({ level: \"error\", withTimestamp: true }, new Error(\"kaboom\"));\r\n```\r\n\r\n## License\r\n\r\nLicensed under MIT.\r\n\r\n(c) [Ilya Krukowski](https://bodrovis.tech/)\r\n\r\n[npm-downloads-image]: https://img.shields.io/npm/dm/kliedz\r\n[npm-downloads-url]: https://npmcharts.com/compare/kliedz?minimal=true\r\n[coverage-image]: https://qlty.sh/gh/bodrovis/projects/kliedz/coverage.svg\r\n[coverage-url]: https://qlty.sh/gh/bodrovis/projects/kliedz\r\n[maintainability-image]: https://qlty.sh/gh/bodrovis/projects/kliedz/maintainability.svg\r\n[maintainability-url]: https://qlty.sh/gh/bodrovis/projects/kliedz\r\n","readmeFilename":"README.md"}