{"name":"logging","version":"4.0.0","author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"license":"MIT","_id":"logging@4.0.0","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"homepage":"https://github.com/dylang/logging#readme","bugs":{"url":"https://github.com/dylang/logging/issues"},"dist":{"shasum":"ff8ae88d61cd2d0425a36d96d36ff7103949dc22","tarball":"http://registry-npm.ywwl.com/logging/download/logging-4.0.0.tgz","fileCount":9,"integrity":"sha512-xtu+RTymLYcZdHXfHtQzMhoBU1ThxlVLEIzh2rJQyGADj2lMBOlXI3XXTjZYuh8Leib0FlWn3p0CKV+AY/shPQ==","signatures":[{"sig":"MEUCIQDn0BxyhXY0aibe/ekwgsQ40/s/6iPKzER3bB1FcbTivwIgc18qGP++7mq/v1fldYTbUlHjIXBWMlS4Gy/5Hnq4PIQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7247,"size":2947,"noattachment":false,"key":"/logging/-/logging-4.0.0.tgz"},"main":"lib/index.js","type":"module","_from":"file:logging-4.0.0.tgz","types":"./lib/index.d.ts","engines":{"node":">= 20"},"exports":{".":{"browser":"./lib/browser.js","default":"./lib/index.js"}},"scripts":{"lint":"biome check --apply .","test":"vitest run && pnpm example","build":"tsc -p tsconfig.build.json","check":"biome check .","start":"node lib/index.js","format":"biome format --write .","example":"node lib/index.js","typecheck":"tsc --noEmit","prepublish":"pnpm typecheck && pnpm build","test:watch":"vitest"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"_resolved":"/tmp/bb4943b5defc5c599b6b5faebd20811e/logging-4.0.0.tgz","_integrity":"sha512-xtu+RTymLYcZdHXfHtQzMhoBU1ThxlVLEIzh2rJQyGADj2lMBOlXI3XXTjZYuh8Leib0FlWn3p0CKV+AY/shPQ==","repository":{"url":"git+https://github.com/dylang/logging.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight informative modern console logging.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"chalk":"^5.4.1","debug":"^4.4.1","nicely-format":"^1.1.0"},"publishConfig":{"registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"sinon":"^20.0.0","tslib":"^2.8.1","rollup":"^4.42.0","vitest":"^3.2.2","ts-node":"^10.9.2","mockdate":"^3.0.5","typescript":"^5.8.3","@types/debug":"^4.1.12","@types/sinon":"^17.0.4","@biomejs/biome":"1.7.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/logging_4.0.0_1749316182761_0.9040586475272008","host":"s3://npm-registry-packages-npm-production"},"readme":"# Logging [![Tests](https://github.com/dylang/logging/actions/workflows/test.yml/badge.svg)](https://github.com/dylang/logging/actions/workflows/test.yml)\n\n> Lightweight informative modern console logging.\n\n[![logging](screenshots/screenshot.png)](screenshots/screenshot.png)\n\n## Install\n\n```sh\npnpm add logging\n```\n\n## Features\n* Simple.\n* Log levels.\n* Nice coloring.\n\n## Usage\n\n```js\n// ESM only\nimport createLogger from 'logging';\n\nconst logger = createLogger('Feature');\n\nlogger.info('Interesting');\n// -> [ Feature ] Interesting\n\nlogger.warn('Hmmm...', { details });\n// -> [ WARNING Feature ] Hmmm... { details object }\n\nlogger.error('Not good.', 'Not good at all.', { err }, { context }, { etc });\n// -> [ ERROR Feature ] Not good. Not good at all. { err } { context } ...\n\n// uses the debug module, use DEBUG=* or DEBUG=FeatureName to see these items.\nlogger.debug('Interesting');\n// -> [ Feature ] Interesting\n```\n","publish_time":1749316183027,"_cnpm_publish_time":1749316183027,"dist-tags":{"latest":"4.2.0","pr":"4.0.0-pr18.16"}}