{"name":"logging","version":"5.0.0-pr18.13","author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"license":"MIT","_id":"logging@5.0.0-pr18.13","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"homepage":"https://github.com/dylang/logging#readme","bugs":{"url":"https://github.com/dylang/logging/issues"},"dist":{"shasum":"409a3415809b4d5e69555a5cee4a3741df8da939","tarball":"http://registry-npm.ywwl.com/logging/download/logging-5.0.0-pr18.13.tgz","fileCount":16,"integrity":"sha512-Oc79q1KG6ASz34DIy7p8544eh8NS7VZghZgjpswoOZal+/g78O2j+yb4Lhw9RqbSppsobnyinWIStU85xNSpHg==","signatures":[{"sig":"MEUCIQCK4HRYZZw9vkiIs/5fuS4zpaUMItE7efXdtAeoDs9tdgIgY8B50VkifyHjm8FBzEDO0ZmsoGN0XyMOprhgsXHwmSc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12824,"size":3695,"noattachment":false,"key":"/logging/-/logging-5.0.0-pr18.13.tgz"},"main":"lib/index.js","type":"module","_from":"file:logging-5.0.0-pr18.13.tgz","types":"./lib/index.d.ts","browser":"lib/browser.js","engines":{"node":">= 20"},"exports":{".":{"import":"./lib/index.js","browser":"./lib/browser.js","require":"./lib/cjs/index.cjs"}},"scripts":{"lint":"biome check --apply .","test":"vitest run && pnpm example","build":"tsc -p tsconfig.build.json && pnpm build:cjs","check":"biome check .","start":"node lib/index.js","format":"biome format --write .","example":"node lib/index.js","build:cjs":"tsc -p tsconfig.build.json --outDir ./lib/cjs --module commonjs --moduleResolution node","typecheck":"tsc --noEmit","prepublish":"pnpm typecheck && pnpm build","test:watch":"vitest"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"_resolved":"/tmp/e79928fd5f6bf1b3c2935f622c46b9c8/logging-5.0.0-pr18.13.tgz","_integrity":"sha512-Oc79q1KG6ASz34DIy7p8544eh8NS7VZghZgjpswoOZal+/g78O2j+yb4Lhw9RqbSppsobnyinWIStU85xNSpHg==","repository":{"url":"git+ssh://git@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,"readmeFilename":"readme.md","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_5.0.0-pr18.13_1749266230826_0.8319211166627514","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":1749266231017,"_cnpm_publish_time":1749266231017,"dist-tags":{"latest":"4.2.0","pr":"4.0.0-pr18.16"}}