{"name":"logging","version":"4.2.0","description":"Lightweight informative modern console logging.","type":"module","main":"lib/index.js","exports":{".":{"default":"./lib/index.js","browser":"./lib/browser.js"}},"repository":{"type":"git","url":"git+https://github.com/dylang/logging.git"},"author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"license":"MIT","dependencies":{"chalk":"^5.4.1","debug":"^4.4.1","nicely-format":"^1.1.0"},"devDependencies":{"@biomejs/biome":"1.7.0","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-typescript":"^12.1.2","@types/debug":"^4.1.12","@types/sinon":"^17.0.4","mockdate":"^3.0.5","rollup":"^4.42.0","sinon":"^20.0.0","ts-node":"^10.9.2","tslib":"^2.8.1","typescript":"^5.8.3","vitest":"^3.2.2"},"engines":{"node":">= 20"},"publishConfig":{"registry":"https://registry.npmjs.org"},"scripts":{"start":"node lib/index.js","test":"vitest run && pnpm example","test:watch":"vitest","format":"biome format --write .","check":"biome check .","lint":"biome check --apply .","typecheck":"tsc --noEmit","build":"tsc -p tsconfig.build.json","example":"node lib/index.js","prepublish":"pnpm typecheck && pnpm build"},"_id":"logging@4.2.0","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/dylang/logging/issues"},"homepage":"https://github.com/dylang/logging#readme","_integrity":"sha512-OPfCRjNr43uM4/g+Qzv+F/PwdyClJR+eSb6Zb2Ha204NEdNCu6amfOX5WEwBEH5l3xx5Gl7fHKwbsnBUHEZlaw==","_resolved":"/tmp/19919e59a3df168574df8fe71d6f06b7/logging-4.2.0.tgz","_from":"file:logging-4.2.0.tgz","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-OPfCRjNr43uM4/g+Qzv+F/PwdyClJR+eSb6Zb2Ha204NEdNCu6amfOX5WEwBEH5l3xx5Gl7fHKwbsnBUHEZlaw==","shasum":"12985d69f41e057f81ea371f1731bdec32831591","tarball":"http://registry-npm.ywwl.com/logging/download/logging-4.2.0.tgz","fileCount":9,"unpackedSize":6759,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQClqtjjWnyQbHbIvaA8yIUiaBuWEkGr0DnuTc2//B93xwIgMNJxecsWEJLW84c2HNy1bd8EyYZ7l/1qjOWrayG3uq4="}],"size":2891,"noattachment":false,"key":"/logging/-/logging-4.2.0.tgz"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"directories":{},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logging_4.2.0_1749387722680_0.3801922064858392"},"_hasShrinkwrap":false,"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":1749387722869,"_cnpm_publish_time":1749387722869,"dist-tags":{"latest":"4.2.0","pr":"4.0.0-pr18.16"}}