{"name":"logging","version":"5.0.0-pr18.20250607030242","author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"license":"MIT","_id":"logging@5.0.0-pr18.20250607030242","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"homepage":"https://github.com/dylang/logging#readme","bugs":{"url":"https://github.com/dylang/logging/issues"},"dist":{"shasum":"32956f83bc332a60b2849fe83f60c6614b1a7567","tarball":"http://registry-npm.ywwl.com/logging/download/logging-5.0.0-pr18.20250607030242.tgz","fileCount":16,"integrity":"sha512-ieTtr+5cd0rnBoy3A6jQQdA2A0umG+3egcwcpYsIIKGo+wQN/fM+JZx191E9Oaqi/7hfwulXIJ4dcL38vCaR8g==","signatures":[{"sig":"MEQCIHOahfpptsjLzFDQXGumE6sutTZT/k7DdIVlJnJBPIg6AiA+wIZgyERHHCludrhtl+ixffcsNOXadbuMydCkSw1IGQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12836,"size":3703,"noattachment":false,"key":"/logging/-/logging-5.0.0-pr18.20250607030242.tgz"},"main":"lib/index.js","type":"module","_from":"file:logging-5.0.0-pr18.20250607030242.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/92ee13c534bbff7600eed3da5240def8/logging-5.0.0-pr18.20250607030242.tgz","_integrity":"sha512-ieTtr+5cd0rnBoy3A6jQQdA2A0umG+3egcwcpYsIIKGo+wQN/fM+JZx191E9Oaqi/7hfwulXIJ4dcL38vCaR8g==","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.20250607030242_1749265369228_0.6433361672628166","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":1749265369392,"_cnpm_publish_time":1749265369392,"dist-tags":{"latest":"4.2.0","pr":"4.0.0-pr18.16"}}