JSPM

  • Created
  • Published
  • Downloads 86519
  • Score
    100M100P100Q164647F
  • License MIT

Opens a WriteStream to a file rotated by interval and/or size. Designed to rotate log files as logrotate does

Package Exports

  • rotating-file-stream

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rotating-file-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rotating-file-stream

Build Status Code Climate Test Coverage Donate

dependency status dev dependency status

NPM

example

var rfs    = require("rfs");
var stream = rfs("file.log", {
    size:     "10M", // rotate every 10 MegaBytes written
    interval: "1d"   // rotate daily
});

under development

This package is currently under development.

fs.createWriteStream