{"_id":"file-stream-rotator","_rev":"2996225","name":"file-stream-rotator","description":"Automated stream rotation useful for log files","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"rogerc","email":""}],"time":{"modified":"2023-08-28T09:22:28.000Z","created":"2012-10-08T13:09:44.794Z","1.0.0":"2022-11-13T16:02:09.757Z","0.6.1":"2022-01-22T11:54:48.623Z","0.6.0":"2022-01-21T11:41:12.469Z","0.5.7":"2020-01-20T23:39:43.119Z","0.5.6":"2020-01-17T18:31:51.939Z","0.5.5":"2019-09-09T14:59:15.726Z","0.5.4":"2019-09-06T11:26:45.926Z","0.5.3":"2019-09-04T15:17:04.225Z","0.5.0":"2019-09-01T14:00:40.975Z","0.4.1":"2018-10-27T12:25:06.730Z","0.4.0":"2018-10-19T11:30:26.358Z","0.3.1":"2018-08-20T09:27:58.076Z","0.3.0":"2018-08-14T14:35:14.737Z","0.2.1":"2018-02-17T17:32:50.342Z","0.2.0":"2017-08-13T17:29:01.255Z","0.1.0":"2017-03-07T18:49:39.522Z","0.0.7":"2016-07-13T10:59:36.304Z","0.0.6":"2015-03-05T14:51:43.780Z","0.0.5":"2013-10-28T12:07:33.885Z","0.0.4":"2012-11-04T23:59:15.107Z","0.0.3":"2012-10-08T14:03:22.515Z","0.0.2":"2012-10-08T13:56:09.364Z","0.0.1":"2012-10-08T13:09:44.794Z"},"users":{},"author":{"name":"Roger Castells"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"versions":{"1.0.0":{"name":"file-stream-rotator","version":"1.0.0","description":"Automated stream rotation useful for log files","main":"lib/index.js","types":"lib/index.d.ts","type":"commonjs","scripts":{"test":"cd tests && node test.js","build":"tsc"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{},"devDependencies":{"@types/node":"^18.11.3","typescript":"^4.8.4"},"gitHead":"321241dd561096ff9b114c7cda0944820235918a","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"de58379321a1ea6d2938ed5f5a2eff3b7f8b2780","size":25332,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-1.0.0.tgz"},"_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"directories":{},"maintainers":[{"name":"rogerc","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_1.0.0_1668355329531_0.41611888705362676"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-13T16:02:14.844Z","publish_time":1668355329757,"_cnpm_publish_time":1668355329757},"0.6.1":{"name":"file-stream-rotator","version":"0.6.1","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.29.1"},"_resolved":"","_integrity":"","_from":"git+https://github.com/rogerc/file-stream-rotator.git","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.6.1","_nodeVersion":"12.22.9","_npmVersion":"6.14.15","dist":{"shasum":"007019e735b262bb6c6f0197e58e5c87cb96cec3","size":12834,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.6.1.tgz"},"_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"directories":{},"maintainers":[{"name":"rogerc","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.6.1_1642852488471_0.3618867799656411"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-22T11:54:55.926Z","publish_time":1642852488623,"_cnpm_publish_time":1642852488623},"0.6.0":{"name":"file-stream-rotator","version":"0.6.0","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.29.1"},"_resolved":"","_integrity":"","_from":"git+https://github.com/rogerc/file-stream-rotator.git","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.6.0","_nodeVersion":"12.22.9","_npmVersion":"6.14.15","dist":{"shasum":"3d8bb80bc5c44fce4bd8036d8a75099a5b4bf6aa","size":12803,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.6.0.tgz"},"_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"directories":{},"maintainers":[{"name":"rogerc","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.6.0_1642765272312_0.1366106875060149"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-21T12:19:05.905Z","publish_time":1642765272469,"_cnpm_publish_time":1642765272469},"0.5.7":{"name":"file-stream-rotator","version":"0.5.7","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"d48e1ec847bd27bc7896462d0e56ba19f07c581e","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.5.7","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"868a2e5966f7640a17dd86eda0e4467c089f6286","size":10672,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.5.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.5.7.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.5.7_1579563583004_0.5411334003890416"},"_hasShrinkwrap":false,"publish_time":1579563583119,"_cnpm_publish_time":1579563583119,"_cnpmcore_publish_time":"2021-12-16T16:07:29.583Z"},"0.5.6":{"name":"file-stream-rotator","version":"0.5.6","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"4d5c338a8760a8e36b0ad53b9000ea77d24ffad2","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.5.6","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"ab19b42fe0d27683d559a63da7b34167e8fcb0f8","size":10639,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.5.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.5.6.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.5.6_1579285911764_0.7155517486759848"},"_hasShrinkwrap":false,"publish_time":1579285911939,"_cnpm_publish_time":1579285911939,"_cnpmcore_publish_time":"2021-12-16T16:07:29.836Z"},"0.5.5":{"name":"file-stream-rotator","version":"0.5.5","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"f0586179a31e975b37aef5184e12db255da88e52","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.5.5","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"61701413100ec866e302094f794304df535dbacb","size":10605,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.5.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.5.5.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.5.5_1568041155605_0.2262804388925712"},"_hasShrinkwrap":false,"publish_time":1568041155726,"_cnpm_publish_time":1568041155726,"_cnpmcore_publish_time":"2021-12-16T16:07:30.088Z"},"0.5.4":{"name":"file-stream-rotator","version":"0.5.4","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"77e8ba9d4bbdc09b0046c4cd984376875a791f64","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.5.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"124ab985fc6f84cee06d18aeb0482b306fe0ac1c","size":10760,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.5.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.5.4.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.5.4_1567769205775_0.20041754272453693"},"_hasShrinkwrap":false,"publish_time":1567769205926,"_cnpm_publish_time":1567769205926,"_cnpmcore_publish_time":"2021-12-16T16:07:30.315Z"},"0.5.3":{"name":"file-stream-rotator","version":"0.5.3","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"1e69bf6279ddce50aa2e010058641e8d71770e1a","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.5.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"bd229e4e7e32ee884be33d00eab5a3df6b909390","size":10251,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.5.3.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.5.3_1567610223541_0.3066195113623258"},"_hasShrinkwrap":false,"publish_time":1567610224225,"_cnpm_publish_time":1567610224225,"_cnpmcore_publish_time":"2021-12-16T16:07:30.526Z"},"0.5.0":{"name":"file-stream-rotator","version":"0.5.0","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"ab749721b2d5292d250fb77ae26b11c62918e1c6","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"a50959f8c9cb22b8f634ca75d907ba355c1bcb46","size":9660,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.5.0.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.5.0_1567346440808_0.7819031885962664"},"_hasShrinkwrap":false,"publish_time":1567346440975,"_cnpm_publish_time":1567346440975,"_cnpmcore_publish_time":"2021-12-16T16:07:30.768Z"},"0.4.1":{"name":"file-stream-rotator","version":"0.4.1","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"822b8a5241335ddc01208df2d1c6f54250cc0491","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.4.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"09f67b86d6ea589d20b7852c51c59de55d916d6d","size":9003,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.4.1.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.4.1_1540643106595_0.4239781675873924"},"_hasShrinkwrap":false,"publish_time":1540643106730,"_cnpm_publish_time":1540643106730,"_cnpmcore_publish_time":"2021-12-16T16:07:30.975Z"},"0.4.0":{"name":"file-stream-rotator","version":"0.4.0","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"0927e018c20a12ed62ee7efbc03f6c90329f84f7","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"751a774bedb3facaa4ae691736e2ccb56d5bfd15","size":8863,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.4.0.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.4.0_1539948625760_0.34880962338414845"},"_hasShrinkwrap":false,"publish_time":1539948626358,"_cnpm_publish_time":1539948626358,"_cnpmcore_publish_time":"2021-12-16T16:07:31.205Z"},"0.3.1":{"name":"file-stream-rotator","version":"0.3.1","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"88c173170a18cea0656c16e11f57312157710f25","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"605ffb1195814eab84cb57040e0ae401a77791f8","size":8784,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.3.1.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.3.1_1534757277982_0.2726225970297813"},"_hasShrinkwrap":false,"publish_time":1534757278076,"_cnpm_publish_time":1534757278076,"_cnpmcore_publish_time":"2021-12-16T16:07:31.476Z"},"0.3.0":{"name":"file-stream-rotator","version":"0.3.0","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"c0e5bee20fd7fd3a2811c6851fa3a29fad20542a","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"810c91bd205a19a32107e21b2cc16e412a3c7f16","size":8703,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.3.0.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.3.0_1534257314656_0.9532065790507807"},"_hasShrinkwrap":false,"publish_time":1534257314737,"_cnpm_publish_time":1534257314737,"_cnpmcore_publish_time":"2021-12-16T16:07:31.675Z"},"0.2.1":{"name":"file-stream-rotator","version":"0.2.1","description":"Automated stream rotation useful for log files","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"a968569ee44e21b9ce8ae48e383b8339f41133ca","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.2.1","_shasum":"0d6fea1a9a7aba25a87cfd31b6e269e44e8f0af2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.12.2","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"0d6fea1a9a7aba25a87cfd31b6e269e44e8f0af2","size":7954,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.2.1.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator_0.2.1_1518888770237_0.5475034677348125"},"_hasShrinkwrap":false,"publish_time":1518888770342,"_cnpm_publish_time":1518888770342,"_cnpmcore_publish_time":"2021-12-16T16:07:31.909Z"},"0.2.0":{"name":"file-stream-rotator","version":"0.2.0","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rogerc/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"577d2ccd904cf29f03ddf6cce3cc076ff11d8d36","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","_id":"file-stream-rotator@0.2.0","_shasum":"9d7638306950ed83bd7586268784b1a9487e08ab","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"9d7638306950ed83bd7586268784b1a9487e08ab","size":7878,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.2.0.tgz"},"maintainers":[{"name":"rogerc","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-stream-rotator-0.2.0.tgz_1502645340194_0.9683649118524045"},"directories":{},"publish_time":1502645341255,"_hasShrinkwrap":false,"_cnpm_publish_time":1502645341255,"_cnpmcore_publish_time":"2021-12-16T16:07:32.126Z"},"0.1.0":{"name":"file-stream-rotator","version":"0.1.0","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"de1276ffadf26e23c2d71b115303267fe4f40b3c","bugs":{"url":"https://github.com/holidayextras/file-stream-rotator/issues"},"homepage":"https://github.com/holidayextras/file-stream-rotator#readme","_id":"file-stream-rotator@0.1.0","_shasum":"28669790e0ca270fe6e8ad78b8654671dc90372b","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"rogerc","email":"rogerc@ataclick.net"},"dist":{"shasum":"28669790e0ca270fe6e8ad78b8654671dc90372b","size":5729,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.1.0.tgz"},"maintainers":[{"name":"rogerc","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-stream-rotator-0.1.0.tgz_1488912577550_0.22265871288254857"},"directories":{},"publish_time":1488912579522,"_hasShrinkwrap":false,"_cnpm_publish_time":1488912579522,"_cnpmcore_publish_time":"2021-12-16T16:07:32.329Z"},"0.0.7":{"name":"file-stream-rotator","version":"0.0.7","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"^2.11.2"},"gitHead":"3c87e2fe8b4c40a88af696d36dd090cd4e3b6ed4","bugs":{"url":"https://github.com/holidayextras/file-stream-rotator/issues"},"homepage":"https://github.com/holidayextras/file-stream-rotator#readme","_id":"file-stream-rotator@0.0.7","_shasum":"48c0e5820b6223e79cbc599f956222946b48fb4e","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"hxmarkterry","email":"mark.terry@holidayextras.com"},"maintainers":[{"name":"rogerc","email":""}],"dist":{"shasum":"48c0e5820b6223e79cbc599f956222946b48fb4e","size":5226,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.7.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-stream-rotator-0.0.7.tgz_1468407573547_0.07904674136079848"},"directories":{},"publish_time":1468407576304,"_hasShrinkwrap":false,"_cnpm_publish_time":1468407576304,"_cnpmcore_publish_time":"2021-12-16T16:07:32.538Z"},"0.0.6":{"name":"file-stream-rotator","version":"0.0.6","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"2.3.1"},"gitHead":"fd071aaa32a20b91846b374b928911417cc4e995","bugs":{"url":"https://github.com/holidayextras/file-stream-rotator/issues"},"homepage":"https://github.com/holidayextras/file-stream-rotator","_id":"file-stream-rotator@0.0.6","_shasum":"3493a61663e5ac95886e67884bb4f000c1e566ff","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rahulpatel","email":"rahul.patel@holidayextras.com"},"maintainers":[{"name":"rogerc","email":""}],"dist":{"shasum":"3493a61663e5ac95886e67884bb4f000c1e566ff","size":4051,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.6.tgz"},"directories":{},"publish_time":1425567103780,"_hasShrinkwrap":false,"_cnpm_publish_time":1425567103780,"_cnpmcore_publish_time":"2021-12-16T16:07:32.748Z"},"0.0.5":{"name":"file-stream-rotator","version":"0.0.5","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","restify","connect","rotate","file","minute","hourly","daily","logrotate"],"author":{"name":"Roger Castells"},"license":"MIT","dependencies":{"moment":"2.3.1"},"readmeFilename":"README.md","_id":"file-stream-rotator@0.0.5","dist":{"shasum":"ca99f6b42959b0b7f82c1e4b7c7c2d2b8de8be3a","size":3482,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.12","_npmUser":{"name":"viktort","email":"viktor.trako@holidayextras.com"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"publish_time":1382962053885,"_hasShrinkwrap":false,"_cnpm_publish_time":1382962053885,"_cnpmcore_publish_time":"2021-12-16T16:07:32.963Z"},"0.0.4":{"name":"file-stream-rotator","version":"0.0.4","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","connect","rotate","file"],"author":{"name":"Dan Jenkins"},"license":"MIT","_id":"file-stream-rotator@0.0.4","dist":{"shasum":"c4a837e32f30c21899cef94a6f3d8ec7f4d6c4bc","size":1901,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.4.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"publish_time":1352073555107,"_hasShrinkwrap":false,"_cnpm_publish_time":1352073555107,"_cnpmcore_publish_time":"2021-12-16T16:07:33.205Z"},"0.0.3":{"name":"file-stream-rotator","version":"0.0.3","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","connect","rotate","file"],"author":{"name":"Dan Jenkins"},"license":"MIT","_id":"file-stream-rotator@0.0.3","dist":{"shasum":"035773583164fca7112d08284192018703c9a436","size":1809,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.3.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"publish_time":1349705002515,"_hasShrinkwrap":false,"_cnpm_publish_time":1349705002515,"_cnpmcore_publish_time":"2021-12-16T16:07:33.414Z"},"0.0.2":{"name":"file-stream-rotator","version":"0.0.2","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","connect","rotate","file"],"author":{"name":"Dan Jenkins"},"license":"MIT","_id":"file-stream-rotator@0.0.2","dist":{"shasum":"13e10ffc77a0637f551e58279c1fb5f7e224f1dc","size":1689,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.2.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"publish_time":1349704569364,"_hasShrinkwrap":false,"_cnpm_publish_time":1349704569364,"_cnpmcore_publish_time":"2021-12-16T16:07:33.636Z"},"0.0.1":{"name":"file-stream-rotator","version":"0.0.1","description":"Automated stream rotation","main":"FileStreamRotator.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/holidayextras/file-stream-rotator.git"},"keywords":["stream","express","connect","rotate","file"],"author":{"name":"Dan Jenkins"},"license":"MIT","_id":"file-stream-rotator@0.0.1","dist":{"shasum":"15805779c1d3d2da07a435f1e77dac8eeba24512","size":1680,"noattachment":false,"key":"/file-stream-rotator/-/file-stream-rotator-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-stream-rotator/download/file-stream-rotator-0.0.1.tgz"},"maintainers":[{"name":"rogerc","email":""}],"directories":{},"publish_time":1349701784794,"_hasShrinkwrap":false,"_cnpm_publish_time":1349701784794,"_cnpmcore_publish_time":"2021-12-16T16:07:33.839Z"}},"readme":"\nfile-stream-rotator\n===================\n\nNodeJS file stream rotator\n\n## Purpose\n\nTo provide an automated rotation of Express/Connect logs or anything else that writes to a file on a regular basis that needs to be rotated based on date, a size limit or combination and remove old log files based on count or elapsed days. \n\n## Install\n\n```\nnpm install file-stream-rotator\n```\n\n**IMPORTANT NOTE**\n\nSince version 1, *moment.js* is not used anymore. The external dependencies have been removed. The date substitutions are done internally and only using numerical values for year, month, day, hour, minute, second. AM/PM is the only text replacement.\n\nFrequency options have changed too.\n\n## Options\n\n - *filename*:       Filename including full path used by the stream\n - *frequency*:      How often to rotate. Options are '*daily*' for daily rotation, '*date*' based on *date_format*, '*[1-12]h*' to rotate every 1-12 hours, \n                     '*[1-30]m*' to rotate every 1-30 minutes.                     \n - *verbose*:        If set, it will use console.log to provide extra information when events happen. Default is false.\n - *date_format*:    Use 'Y' for full year, 'M' for month, 'D' for day, 'H' for hour, 'm' for minutes, 's' for seconds\n                     If using '*date*' frequency, it is used to trigger file change when the string representation changes.\n                     It will be used to replace %DATE% in the filename. All replacements are numeric only.\n - *size*:           Max size of the file after which it will rotate. It can be combined with frequency or date format.\n                     The size units are 'k', 'm' and 'g'. Units need to directly follow a number e.g. 1g, 100m, 20k.                     \n - *max_logs*        Max number of logs to keep. If not set, it won't remove past logs. It uses its own log audit file\n                     to keep track of the log files in a json format. It won't delete any file not contained in it.\n                     It can be a number of files or number of days. If using days, add 'd' as the suffix. e.g., '10d' for 10 days.\n - *audit_file*      Location to store the log audit file. If not set, it will be stored in the root of the application.\n - *end_stream*      End stream (true) instead of the default behaviour of destroy (false). Set value to true if when writing to the\n                     stream in a loop, if the application terminates or log rotates, data pending to be flushed might be lost.\n - *file_options*    An object passed to the stream. This can be used to specify flags, encoding, and mode.\n                     See https://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options. Default `{ flags: 'a' }`.             \n - *utc*             Use UTC time for date in filename. Defaults to 'false'\n - *extension*       File extension to be appended to the filename. This is useful when using size restrictions as the rotation\n                     adds a count (1,2,3,4,...) at the end of the filename when the required size is met.\n - *create_symlink*  Create a tailable symlink to the current active log file. Defaults to 'FALSE'\n - *symlink_name*    Name to use when creating the symbolic link. Defaults to 'current.log'\n - *audit_hash_type* Use specified hashing algorithm for audit. Defaults to 'md5'. Use 'sha256' for FIPS compliance.\n \n\n## Example Usage\n\n### **Typescript**\n```typescript\nimport * as FileStreamRotator from 'file-stream-rotator'\n\nvar rotatingLogStream = FileStreamRotator.getStream({\n    filename: \"/tmp/test-%DATE%\", \n    frequency: \"daily\", \n    date_format: \"YYYY-MM-DD\", \n    size: \"100M\",\n    max_logs: \"10\",\n    audit_file: \"/tmp/audit.json\",\n    extension: \".log\",\n    create_symlink: true,\n    symlink_name: \"tail-current.log\",\n})\n```\n\n### **Javascript**\n```javascript\n// Default date added at the end of the file\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test.log\", frequency:\"daily\", verbose: false});\n\n// Default date added using file pattern\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test-%DATE%.log\", frequency:\"daily\", verbose: false});\n\n// Custom date added using file pattern using date format\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test-%DATE%.log\", frequency:\"daily\", verbose: false, date_format: \"YYYY-MM-DD\"});\n\n// Rotate when the date format is different (e.g monthly) using Y (Year), M (Month) replacements\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test-%DATE%.log\", frequency:\"custom\", verbose: false, date_format: \"YYYY-MM\"});\n\n// Rotate when the date format is different (e.g AM/PM) using Y (Year), M (Month), D (Day), A (AM/PM) replacements\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test-%DATE%.log\", frequency:\"custom\", verbose: false, date_format: \"YYYY-MM-DD-A\"});\n\n// Rotate on given minutes using the 'm' option i.e. 5m or 30m\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test.log\", frequency:\"5m\", verbose: false});\n  \n// Rotate on the hour or any specified number of hours\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test.log\", frequency:\"1h\", verbose: false});\n\n// Rotate on the hour or any specified number of hours and keep 10 files\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test.log\", frequency:\"1h\", verbose: false, max_logs: 10});\n\n// Rotate on the hour or any specified number of hours and keep 10 days\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test.log\", frequency:\"1h\", verbose: false, max_logs: \"10d\"});\n\n// Rotate on the hour or any specified number of hours and keep 10 days and store the audit file in /tmp/log-audit.json\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/test.log\", frequency:\"1h\", verbose: false, max_logs: \"10d\", audit_file: \"/tmp/log-audit.json\"});\n\n// Rotate by file size only without date included in the name. Iteration will be added at the end.\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/logfile\", size:\"50k\", max_logs: \"5\", audit_file:\"/tmp/logaudit.json\"});\n\n// Rotate by file size only without date included in the name. Rotation added before the extension.\nvar rotatingLogStream = require('file-stream-rotator').getStream({filename:\"/tmp/logfile\", size:\"50k\", max_logs: \"5\", audit_file:\"/tmp/logaudit.json\", extension: \".log\"});\n\n\n//.....    \n\n// Use new stream in express\napp.use(express.logger({stream: rotatingLogStream, format: \"default\"}));\n\n//.....\n\n```\n\nYou can manually rotate the current open log to allow log archiving.\n```javascript\nrotatingLogStream.rotate(true)\n```\n\n    \nYou can listen to the *open*, *close*, *error* and *finish* events generated by the open stream. You can also listen for custom events:\n\n  * *rotate*: that will pass two parameters to the callback: (*oldFilename*, *newFilename*)\n  * *new*: that will pass one parameter to the callback: *newFilename*\n  * *logRemoved*: that will pass one parameter to the callback: {*date*: unix_timestamp, *name*: filename_deleted, *hash*: log_file_unique_idenfifier} \n  \nYou can also limit the size of each file by adding the size option using \"k\", \"m\" and \"g\" to specify the size of the file in kiloybytes, megabytes or gigabytes. When it rotates a file based on size, it will add a number to the end and increment it for every time the file rotates in the given period as shown below.\n  \n```\n  3078  7 Mar 13:09:58 2017 testlog-2017-03-07.13.09.log.20\n  2052  7 Mar 13:10:00 2017 testlog-2017-03-07.13.09.log.21\n  3078  7 Mar 13:10:05 2017 testlog-2017-03-07.13.10.log.1\n  3078  7 Mar 13:10:08 2017 testlog-2017-03-07.13.10.log.2\n  3078  7 Mar 13:10:11 2017 testlog-2017-03-07.13.10.log.3\n  3078  7 Mar 13:10:14 2017 testlog-2017-03-07.13.10.log.4\n```  \n\n  The example below will rotate files daily but each file will be limited to 5MB.\n  \n```javascript\n    // Rotate every day or every 5 megabytes, whatever comes first.\n    var rotatingLogStream = require('file-stream-rotator').getStream(\n        {\n            filename:\"/tmp/test-%DATE%.log\", \n            frequency:\"custom\", \n            verbose: false, \n            date_format: \"YYYY-MM-DD\",\n            size: \"5M\" // its letter denominating the size is case insensitive\n        }\n    );\n    rotatingLogStream.on('rotate',function(oldFile,newFile){\n        // do something with old file like compression or delete older than X days.\n    })\n```\n\n## NPM Maintainers\n\nThe npm module for this library will be maintained by:\n\n* [Roger C](http://github.com/rogerc)\n\n## Contributors\n\nThanks to the contributors below for raising PRs and everyone else that has raised issues to make the module better.\n\n* [Matt Berther](https://github.com/mattberther)\n* [nickbug](https://github.com/nickbug)\n* [André Farzat](https://github.com/andrefarzat)\n* [Thibault.P](https://github.com/DrPlop)\n\n## License\n\nfile-stream-rotator is licensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/rogerc/file-stream-rotator#readme","bugs":{"url":"https://github.com/rogerc/file-stream-rotator/issues"},"license":"MIT"}