{"_id":"pino-rotating-file-stream","_rev":"3-9f02b0927099b0d0e7c75915e4deef23","name":"pino-rotating-file-stream","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"pino-rotating-file-stream","version":"0.0.1","keywords":["pino","pino-transport","log-rotation","logging"],"author":{"name":"Angelo Delicato","email":"thelicato@duck.com"},"license":"MIT","_id":"pino-rotating-file-stream@0.0.1","maintainers":[{"name":"thelicato","email":"delicato.angelo@gmail.com"}],"homepage":"https://github.com/thelicato/pino-rotating-file-stream#readme","bugs":{"url":"https://github.com/thelicato/pino-rotating-file-stream/issues"},"dist":{"shasum":"9e86586d3d4d38dca06f8a0c846c75851e0d1289","tarball":"https://registry.npmjs.org/pino-rotating-file-stream/-/pino-rotating-file-stream-0.0.1.tgz","fileCount":13,"integrity":"sha512-on3o1KEqFx9Gh+MUTzDjNru4RZbIcD8NAWjR+gihFe50QO7EoPoQ2ncgHhmZYP5T4qvquRgRwJm4U7PeYtLahA==","signatures":[{"sig":"MEQCIEcWRiFe9jvq5YUwcODTZK7CoOV2QY7CFtjneX9vopy9AiAyDWU+KNidDjLo4VRWwXBdCz1r5pwCCSeX5MSNu05iog==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9338},"main":"./dist/cjs/index.js","_from":"file:pino-rotating-file-stream-0.0.1.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"},"./*":{"import":"./*","require":"./*.js"},"./*.js":"./*.js"},"scripts":{"build":"pnpm build-mjs && pnpm build-cjs","build-cjs":"tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json","build-mjs":"tsc -p tsconfig.mjs.json && tsc-alias -p tsconfig.mjs.json"},"_npmUser":{"name":"thelicato","email":"delicato.angelo@gmail.com"},"_resolved":"/tmp/2aee93a3cdd4c2f92ca01dc84b86b4bb/pino-rotating-file-stream-0.0.1.tgz","_integrity":"sha512-on3o1KEqFx9Gh+MUTzDjNru4RZbIcD8NAWjR+gihFe50QO7EoPoQ2ncgHhmZYP5T4qvquRgRwJm4U7PeYtLahA==","repository":{"url":"git+https://github.com/thelicato/pino-rotating-file-stream.git","type":"git"},"_npmVersion":"8.19.4","description":"A transport for pino that rotates logs","directories":{},"_nodeVersion":"16.20.0","dependencies":{"rotating-file-stream":"^3.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.5.1","devDependencies":{"pino":"^8.14.1","pnpm":"^8.5.1","ts-node":"^10.9.1","tsc-alias":"^1.8.5","typescript":"^5.0.4","@types/node":"^20.1.1","tsconfig-paths":"^4.2.0"},"typeScriptVersion":"3.7","_npmOperationalInternal":{"tmp":"tmp/pino-rotating-file-stream_0.0.1_1684315517773_0.9048888324288786","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"pino-rotating-file-stream","version":"0.0.2","keywords":["pino","pino-transport","log-rotation","logging"],"author":{"name":"Angelo Delicato","email":"thelicato@duck.com"},"license":"MIT","_id":"pino-rotating-file-stream@0.0.2","maintainers":[{"name":"thelicato","email":"delicato.angelo@gmail.com"}],"homepage":"https://github.com/thelicato/pino-rotating-file-stream#readme","bugs":{"url":"https://github.com/thelicato/pino-rotating-file-stream/issues"},"dist":{"shasum":"930a3fc8ad0056f398d3eaf22827f273990beb86","tarball":"https://registry.npmjs.org/pino-rotating-file-stream/-/pino-rotating-file-stream-0.0.2.tgz","fileCount":13,"integrity":"sha512-knF+ReDBMQMB7gzBfuFpUmCrXpRen6YYh5Q9Ymmj//dDHeH4QEMwAV7VoGEEM+30s7VHqfbabazs9wxkMO2BIQ==","signatures":[{"sig":"MEUCIDc3Kv8b3K3vO21vlVynz+T75xb0CWMEIeZW5IpXGuvFAiEAr99K7RxGnhsh2+z9xRtgHykCC2+3xnrLkYwAWC8k/KE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9576},"main":"./dist/cjs/index.js","_from":"file:pino-rotating-file-stream-0.0.2.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"},"./*":{"import":"./*","require":"./*.js"},"./*.js":"./*.js"},"scripts":{"build":"pnpm build-mjs && pnpm build-cjs","build-cjs":"tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json","build-mjs":"tsc -p tsconfig.mjs.json && tsc-alias -p tsconfig.mjs.json"},"_npmUser":{"name":"thelicato","email":"delicato.angelo@gmail.com"},"_resolved":"/tmp/48dd19f0a1dd9b98c8a96bab5eeadecb/pino-rotating-file-stream-0.0.2.tgz","_integrity":"sha512-knF+ReDBMQMB7gzBfuFpUmCrXpRen6YYh5Q9Ymmj//dDHeH4QEMwAV7VoGEEM+30s7VHqfbabazs9wxkMO2BIQ==","repository":{"url":"git+https://github.com/thelicato/pino-rotating-file-stream.git","type":"git"},"_npmVersion":"8.19.4","description":"A transport for pino that rotates logs","directories":{},"_nodeVersion":"16.20.0","dependencies":{"rotating-file-stream":"^3.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.5.1","devDependencies":{"pino":"^8.14.1","pnpm":"^8.5.1","ts-node":"^10.9.1","tsc-alias":"^1.8.5","typescript":"^5.0.4","@types/node":"^20.1.1","tsconfig-paths":"^4.2.0"},"typeScriptVersion":"3.7","_npmOperationalInternal":{"tmp":"tmp/pino-rotating-file-stream_0.0.2_1684318601184_0.0863896670165698","host":"s3://npm-registry-packages"}},"0.0.3":{"_id":"pino-rotating-file-stream@0.0.3","bugs":{"url":"https://github.com/thelicato/pino-rotating-file-stream/issues"},"dist":{"shasum":"79cb7dd227c031924b42fd50758f181aeb8b4212","tarball":"https://registry.npmjs.org/pino-rotating-file-stream/-/pino-rotating-file-stream-0.0.3.tgz","fileCount":13,"integrity":"sha512-47O0EhLOZBKmep3BJhRvrlX8rzZYSvxqK+ZzNOvlY16Fpc7pybrmrGSg0Vh1UO/A1eVvMEB/WyKvcvgeut3A7g==","signatures":[{"sig":"MEUCIQDUSJom3s1UgqSqD4NuxM2a0YnT9d3y4STC5pwnAX9ArQIgfZqj5cWSKEg7u4b75PJ2TLHa/jzt+Qb5JIsQCgzlXGI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDpK1hx2tNltlLrW7J8Di0yeGuYyHI+QCWPw36ub7RyKAiAvHs5RBf307BFI8D2qv1W80okBanFknHNWTGUhY7yOlQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/pino-rotating-file-stream@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8809},"main":"./dist/cjs/index.js","name":"pino-rotating-file-stream","types":"./dist/cjs/index.d.ts","author":{"name":"Angelo Delicato","email":"thelicato@duck.com"},"module":"./dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"},"./*":{"import":"./*","require":"./*.js"},"./*.js":"./*.js"},"gitHead":"5f3cdcf19d0ea07fdd171f1c312ce3fe7b4455b1","license":"MIT","scripts":{"test":"npm run build && node --test","build":"npm run build-mjs && npm run build-cjs","build-cjs":"tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json","build-mjs":"tsc -p tsconfig.mjs.json && tsc-alias -p tsconfig.mjs.json","prepublishOnly":"npm run build"},"version":"0.0.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"724b5be1-55ab-4436-a2cc-e5433260f18e"}},"homepage":"https://github.com/thelicato/pino-rotating-file-stream#readme","keywords":["pino","pino-transport","log-rotation","logging"],"repository":{"url":"git+https://github.com/thelicato/pino-rotating-file-stream.git","type":"git"},"_npmVersion":"11.19.0","description":"A transport for pino that rotates logs","directories":{},"maintainers":[{"name":"thelicato","email":"delicato.angelo@gmail.com"}],"_nodeVersion":"24.21.0","dependencies":{"rotating-file-stream":"^3.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.5.1","devDependencies":{"pino":"^8.14.1","ts-node":"^10.9.1","tsc-alias":"^1.8.5","typescript":"^5.0.4","@types/node":"^20.1.1","tsconfig-paths":"^4.2.0"},"typeScriptVersion":"3.7","_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pino-rotating-file-stream_0.0.3_1792774812689_0.1277522255657475"}}},"time":{"created":"2023-05-17T09:25:17.773Z","modified":"2026-10-23T17:00:13.114Z","0.0.1":"2023-05-17T09:25:17.908Z","0.0.2":"2023-05-17T10:16:41.398Z","0.0.3":"2026-10-23T17:00:12.775Z"},"bugs":{"url":"https://github.com/thelicato/pino-rotating-file-stream/issues"},"author":{"name":"Angelo Delicato","email":"thelicato@duck.com"},"license":"MIT","homepage":"https://github.com/thelicato/pino-rotating-file-stream#readme","keywords":["pino","pino-transport","log-rotation","logging"],"repository":{"url":"git+https://github.com/thelicato/pino-rotating-file-stream.git","type":"git"},"description":"A transport for pino that rotates logs","maintainers":[{"name":"thelicato","email":"delicato.angelo@gmail.com"}],"readme":"# pino-rotating-file-stream\n\n[![NPM Package Version](https://img.shields.io/npm/v/pino-rotating-file-stream)](https://www.npmjs.com/package/pino-rotating-file-stream)\n\n## Description\n\nThis module provides a **transport** for *pino* to automatically rotates logs. Under the hood, it uses [rotating-file-stream](https://www.npmjs.com/package/rotating-file-stream) even though some fields have been added to the default *Options*.\n\n## CLI\nThe current version of this packages has only support for the module usage as described in the [Programmatic Integration](#programmatic-integration) section. This feature will be added in next versions of the package.\nFor now you can rely on [@vrbo/pino-rotating-file](https://www.npmjs.com/package/@vrbo/pino-rotating-file) for CLI integration.\n## Programmatic Integration\nInstall ``pino-rotating-file-stream`` alongside ``pino`` and set the transport to ``pino-rotating-file-stream``:\n\n```js\nconst pino = require('pino')\nconst logger = pino({\n  transport: {\n    target: 'pino-rotating-file-stream',\n    options: {\n      filename: 'app.log', // Required\n      path: './logs', // Required\n    },\n  },\n})\n\nlogger.info('hi')\n```\n\nSee also the example in the ``examples`` folder.\n\n### Options\nThe options are the same provided by ``rotating-file-stream`` except for the required ``filename`` and ``path``. Options are passed through without wrapper defaults. In particular, size rotation, interval rotation, rotated-file size limits, and compression are disabled unless configured; see ``rotating-file-stream`` for its defaults and option details:\n```js\n{\n  filename: string; // Specifies the name of the file. Required.\n  path: string // Specifies the base path for files. Required.\n  size: string // Specifies the file size to rotate the file.\n  maxSize: string // Specifies the maximum size of rotated files to keep.\n  interval: string // Specifies the time interval to rotate the file.\n  compress: boolean | string | Function // Specifies compression method of rotated files.\n  encoding: string // Specifies the default encoding. Default: 'utf8'.\n  history: string // Specifies the history filename. Default: null.\n  immutable: boolean // Never mutate file names. Default: null.\n  initialRotation: boolean // Initial rotation based on not-rotated file timestamp. Default: null.\n  intervalBoundary: boolean // Makes rotated file name with lower boundary of rotation period. Default: null.\n  maxFiles: number // Specifies the maximum number of rotated files to keep. Default: null.\n  mode: number // Proxied to fs.createWriteStream. Default: 0o666.\n  omitExtension: // boolean Omits the .gz extension from compressed rotated files. Default: null.\n  rotate: number // Enables the classical UNIX logrotate behaviour. Default: null.\n  teeToStdout: boolean // Writes file content to stdout as well. Default: null.\n}\n```\n\n## License\n\n[MIT](./LICENSE) License © 2023 [Angelo Delicato](https://github.com/thelicato)\n","readmeFilename":"README.md"}