{"_id":"nj-logger","_rev":"6-2f4f823001369b68996022dd3cf943f4","name":"nj-logger","dist-tags":{"latest":"1.3.3"},"versions":{"1.2.1":{"name":"nj-logger","version":"1.2.1","keywords":["logger","logging","node","express","http"],"license":"MIT","_id":"nj-logger@1.2.1","maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"dist":{"shasum":"1d0a7ca47bf04af389083c8a3ac46feafccf960e","tarball":"https://registry.npmjs.org/nj-logger/-/nj-logger-1.2.1.tgz","fileCount":10,"integrity":"sha512-2YpeXHr3+aQ0QAUjTf0ghoYe8zMakYgV9cvKSy9H3QbVXyMr8MRDm0JJVWU0ljDsWn0IhPq6RySzDwrs6jhCSw==","signatures":[{"sig":"MEUCIQD73FU67FCiUVEvMEq0IJ4ZDjrbOvqZhkq7xOWlvbVKOAIgQDBkb5C3hG9ZYVTZ/p6DZX1dcPLzFBGxb4qxo5yTJPw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10558},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"gitHead":"dcc780b49679d18df915c11e1057bc1bdad04b8b","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"davidwise966","email":"davidwise966@gmail.com"},"_npmVersion":"10.9.3","description":"Lightweight Node.js logger with JSON output and Express middleware.","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"express":"^5.2.1","typescript":"5.7.2","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/nj-logger_1.2.1_1772578766160_0.404953003760232","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"nj-logger","version":"1.2.2","keywords":["logger","logging","node","express","http"],"license":"MIT","_id":"nj-logger@1.2.2","maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"dist":{"shasum":"5aa6b57390cb27e3cb1618ce1f9ab6bc9f897567","tarball":"https://registry.npmjs.org/nj-logger/-/nj-logger-1.2.2.tgz","fileCount":10,"integrity":"sha512-iUqVAxM1MwPeNd6TCmwU2XWXWbNuFyqnHV9Ez0Fuofv1XAXt8d7r1Z5KNGGlC5e0trfsGcjFU+CtjqfvqRCR+w==","signatures":[{"sig":"MEYCIQDILAGsKgr+tUiPiQSAkcQ5q8lkqi2qh/wYMW1F2mAmGgIhALNA5LyXpc1vzQj1/KY+SQSdp4Xc6t649Xw1xr21eq9p","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10640},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"gitHead":"40a1a3bb433a043d7eedd3f2b63c183a98e2d0df","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"davidwise966","email":"davidwise966@gmail.com"},"_npmVersion":"10.9.3","description":"Lightweight Node.js logger with JSON output and Express middleware.","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"express":"^5.2.1","typescript":"5.7.2","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/nj-logger_1.2.2_1773292031368_0.055426920799115154","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"nj-logger","version":"1.3.0","keywords":["logger","logging","node","express","http"],"license":"MIT","_id":"nj-logger@1.3.0","maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"dist":{"shasum":"535595bb1dec136458b21d877a2ef944151a79b8","tarball":"https://registry.npmjs.org/nj-logger/-/nj-logger-1.3.0.tgz","fileCount":12,"integrity":"sha512-F2bWYTAxjx6gqnxdYS1QFl1WNinLk0idFXYCvdlNAL8IHLJw0VdOFCcOsiij6b3PLqPvqrrxDTIoXTTSZQpxCA==","signatures":[{"sig":"MEYCIQC0VO+bTEfdbZn1Awaleh4p+3uf1kevnB5p86EpAWUnOwIhAMwd2C81GR955ulqLQjstyfO80fSWo7LA1PzfclEyvOC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12238},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"gitHead":"2d3f4b1b2daca2fd2c22a270aaf68a67d4508025","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"davidwise966","email":"davidwise966@gmail.com"},"_npmVersion":"10.9.3","description":"Lightweight Node.js logger with JSON output and Express middleware.","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"express":"^5.2.1","typescript":"5.7.2","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/nj-logger_1.3.0_1773416069715_0.6035140662958158","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"nj-logger","version":"1.3.1","keywords":["logger","logging","node","express","http"],"license":"MIT","_id":"nj-logger@1.3.1","maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"dist":{"shasum":"cb727dcfbce34be2fc83ed0d942af17639a7ff66","tarball":"https://registry.npmjs.org/nj-logger/-/nj-logger-1.3.1.tgz","fileCount":12,"integrity":"sha512-K7scirWG+kXjhXOe27YrHk4i62buExce0hUyk1W5FU3y7UEkAQHpz5jXQMwDerZHV84nXr32DpCDAQQpj/+/UQ==","signatures":[{"sig":"MEYCIQCz2a6gmvAkXzsNJM/GarQbE8eFCql4eNI7AEhRb6UdkwIhAOJZX7g87qoEsNHtZGtaslWMcLGs96IKwmlFggh/ULJt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15432},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"gitHead":"9070c745e2753934b5e7b246249f6cf7639f9295","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"davidwise966","email":"davidwise966@gmail.com"},"_npmVersion":"10.9.3","description":"Lightweight Node.js logger with JSON output and Express middleware.","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"express":"^5.2.1","typescript":"5.7.2","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/nj-logger_1.3.1_1773417698670_0.26174100146386303","host":"s3://npm-registry-packages-npm-production"}},"1.3.2":{"name":"nj-logger","version":"1.3.2","keywords":["logger","logging","node","express","http","native-transport"],"author":{"name":"Nikolai Jensen","email":"nikolai@njtools.dev"},"license":"MIT","_id":"nj-logger@1.3.2","maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"homepage":"https://github.com/nj-tools/nj-logger#readme","bugs":{"url":"https://github.com/nj-tools/nj-logger/issues"},"dist":{"shasum":"1506a6d874aea6067c519b2b0c21a56690bc09d4","tarball":"https://registry.npmjs.org/nj-logger/-/nj-logger-1.3.2.tgz","fileCount":12,"integrity":"sha512-yQp0tSoJ24Uw3tslU58vx9cM0xsM8VJeRTUzy6bwmIR4DIO0zK/h28y7L6k5GIb72zk21Y6JyUrdq0Xe+EHpDQ==","signatures":[{"sig":"MEUCIBQOboxassv0vkzqkFSk0nEbaCKiM3XEMYVtMc90u7w6AiEA7b9/veE2jWCHixgN1ytUGgsYmAy5YxlwCDU2VtQqeqo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19500},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"gitHead":"a553f93beaef79616281804f95efcef4ca40cc58","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"davidwise966","email":"davidwise966@gmail.com"},"repository":{"url":"git+https://github.com/nj-tools/nj-logger.git","type":"git"},"_npmVersion":"10.9.3","description":"Lightweight Node.js logger with JSON output, Express middleware, and optional native IPC transport.","directories":{},"sideEffects":true,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"express":"^5.2.1","typescript":"5.7.2","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/nj-logger_1.3.2_1775652086268_0.6445498090172781","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"nj-logger","version":"1.3.3","description":"Lightweight Node.js logger with JSON output, Express middleware, and optional native IPC transport.","author":{"name":"Nikolai Jensen","email":"nikolai@njtools.dev"},"repository":{"type":"git","url":"git+https://github.com/nj-tools/nj-logger.git"},"homepage":"https://github.com/nj-tools/nj-logger#readme","bugs":{"url":"https://github.com/nj-tools/nj-logger/issues"},"type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json"},"keywords":["logger","logging","node","express","http","native-transport"],"license":"MIT","sideEffects":true,"engines":{"node":">=18"},"devDependencies":{"@types/express":"^5.0.6","express":"^5.2.1","typescript":"5.7.2"},"_id":"nj-logger@1.3.3","gitHead":"7e37670dc68de9ecf278444f6a6020ca4538968c","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-gxmvTvdaSeWC0ZwbSuZBxEq8TiGg/mX40BwEeGvsSSIJNnqBD+sUalO/t+dEFHprn/n5o7sKuMvmp7/TuhejYw==","shasum":"fb384bac05f229e8506b451aa9cd4fca247bd84d","tarball":"https://registry.npmjs.org/nj-logger/-/nj-logger-1.3.3.tgz","fileCount":12,"unpackedSize":19690,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBPj7G1bpHiIcKCsFAQSp7MKcqZfrMLJVJvdelQn5FJYAiBTneDBlQRACEZVO0XRx5BN3Wc4D+2mHcQuPxSz6P6+zg=="}]},"_npmUser":{"name":"davidwise966","email":"davidwise966@gmail.com"},"directories":{},"maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nj-logger_1.3.3_1776272674679_0.24234248133453073"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-03T22:59:26.160Z","modified":"2026-04-15T17:04:34.948Z","1.2.1":"2026-03-03T22:59:26.312Z","1.2.2":"2026-03-12T05:07:11.521Z","1.3.0":"2026-03-13T15:34:29.878Z","1.3.1":"2026-03-13T16:01:38.817Z","1.3.2":"2026-04-08T12:41:26.409Z","1.3.3":"2026-04-15T17:04:34.831Z"},"bugs":{"url":"https://github.com/nj-tools/nj-logger/issues"},"author":{"name":"Nikolai Jensen","email":"nikolai@njtools.dev"},"license":"MIT","homepage":"https://github.com/nj-tools/nj-logger#readme","keywords":["logger","logging","node","express","http","native-transport"],"repository":{"type":"git","url":"git+https://github.com/nj-tools/nj-logger.git"},"description":"Lightweight Node.js logger with JSON output, Express middleware, and optional native IPC transport.","maintainers":[{"name":"davidwise966","email":"davidwise966@gmail.com"}],"readme":"## nj-logger\n\nSimple, lightweight logger for Node.js services with JSON output, optional\nExpress middleware, and a native IPC transport for high-throughput environments.\n\n### Install\n\n```bash\nnpm install nj-logger\n```\n\n### Quick start\n\n```ts\nimport { initLogger, getLogger } from \"nj-logger\";\n\ninitLogger({\n  level: \"info\",\n  json: true,\n  colorize: true,\n  defaultContext: { service: \"my-service\" },\n});\n\nconst log = getLogger();\n\nlog.info(\"service started\");\nlog.warn(\"slow request\", { path: \"/api\", ms: 512 });\n```\n\n### Express middleware\n\n```ts\nimport express from \"express\";\nimport { initLogger, requestLogger } from \"nj-logger\";\n\ninitLogger({ level: \"info\" });\n\nconst app = express();\napp.use(requestLogger());\n\napp.get(\"/health\", (req, res) => {\n  (req as any).logger?.info(\"health check ok\");\n  res.json({ ok: true });\n});\n\napp.listen(3000);\n```\n\n### Native transport\n\nOn supported platforms (currently Windows), nj-logger can download a small\nplatform-specific native binary that listens on a local named pipe and forwards\nlog batches with minimal overhead. The binary is fetched once from the nj-logger\nCDN and cached in `node_modules/.cache/nj-logger/` so subsequent cold-starts are\ninstant.\n\nThe native transport is enabled by default when telemetry is active. To disable\nboth telemetry and the native transport, set the environment variable before\nstarting your application:\n\n```bash\nNJ_TELEMETRY=0 node server.js\n```\n\nThe cached binary is versioned alongside the package and is automatically\nreplaced when you upgrade nj-logger.\n","readmeFilename":"README.md"}