{"versions":{"1.0.1":{"name":"fs-tail-stream","version":"1.0.1","description":"fs.createReadStream that supports ongoing tailing of files","main":"index.js","scripts":{"pretest":"semistandard","test":"tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/eugeneware/fs-tail-stream.git"},"keywords":["fs","createReadStream","tail","tailing","watch","watching"],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/eugeneware/fs-tail-stream/issues"},"dependencies":{"once":"^1.4.0"},"devDependencies":{"concat-stream":"^1.6.0","redtape":"^1.0.0","semistandard":"^9.2.1","tape":"^4.4.0"},"gitHead":"ca4e7cb4afc0426144692228c9f8dbfcd5c88dfd","homepage":"https://github.com/eugeneware/fs-tail-stream#readme","_id":"fs-tail-stream@1.0.1","_shasum":"3a8811c91a03f5b0ea417f87583ab0d20fb66b1c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"anonymous","email":"eugene@noblesamurai.com"},"dist":{"shasum":"3a8811c91a03f5b0ea417f87583ab0d20fb66b1c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-tail-stream/-/fs-tail-stream-1.0.1.tgz","size":14118,"integrity":"sha512-WZV5/28ZTCqjAR+MtyYzkQ0TuwSey4Tn+WhTX87is61gNEE7p6keShn5uDE33KJXS5sA05dSrIlyDPhDuvxwcw=="},"maintainers":[{"name":"anonymous","email":"eugene@noblesamurai.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-tail-stream-1.0.1.tgz_1486020000941_0.5207726764492691"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T12:15:18.961Z","contributors":[]},"1.0.2":{"name":"fs-tail-stream","version":"1.0.2","description":"fs.createReadStream that supports ongoing tailing of files","main":"index.js","scripts":{"pretest":"semistandard","test":"tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/eugeneware/fs-tail-stream.git"},"keywords":["fs","createReadStream","tail","tailing","watch","watching"],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/eugeneware/fs-tail-stream/issues"},"dependencies":{"once":"^1.4.0"},"devDependencies":{"concat-stream":"^1.6.0","redtape":"^1.0.0","semistandard":"^9.2.1","tape":"^4.4.0"},"gitHead":"956dad877ee719b4ea2665aa79c17fa61e9c50fa","homepage":"https://github.com/eugeneware/fs-tail-stream#readme","_id":"fs-tail-stream@1.0.2","_shasum":"0499d49387579822c95324de6271a703f7944db7","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"anonymous","email":"eugene@noblesamurai.com"},"dist":{"shasum":"0499d49387579822c95324de6271a703f7944db7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-tail-stream/-/fs-tail-stream-1.0.2.tgz","size":14167,"integrity":"sha512-oUzUJMs9b/S4q4gjxjpvAL3v3Txoxzd3IazBHffjMkrGtfT/EDFSfxIXitQzXj8486PyoOkFhmJ7PVH6jNLi4A=="},"maintainers":[{"name":"anonymous","email":"eugene@noblesamurai.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-tail-stream-1.0.2.tgz_1486020486045_0.8350908604916185"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T12:15:19.828Z","contributors":[]},"1.0.3":{"name":"fs-tail-stream","version":"1.0.3","description":"fs.createReadStream that supports ongoing tailing of files","main":"index.js","scripts":{"pretest":"semistandard","test":"tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/eugeneware/fs-tail-stream.git"},"keywords":["fs","createReadStream","tail","tailing","watch","watching"],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/eugeneware/fs-tail-stream/issues"},"dependencies":{"once":"^1.4.0"},"devDependencies":{"concat-stream":"^1.6.0","redtape":"^1.0.0","semistandard":"^9.2.1","tape":"^4.4.0"},"gitHead":"2bc70611cbcfc646d7508f02e253faef926df496","homepage":"https://github.com/eugeneware/fs-tail-stream#readme","_id":"fs-tail-stream@1.0.3","_shasum":"3bf25b4c0828357be7fc650185cf3e9041d1901b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"anonymous","email":"eugene@noblesamurai.com"},"dist":{"shasum":"3bf25b4c0828357be7fc650185cf3e9041d1901b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-tail-stream/-/fs-tail-stream-1.0.3.tgz","size":14182,"integrity":"sha512-I4Iht1s4CMPNh7W3J5exMTizAulDWR3ATI/FFqhPUDNNS2aasBujbfF48H8tEPYexApx4d2rpOCtylVPF2GrJA=="},"maintainers":[{"name":"anonymous","email":"eugene@noblesamurai.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-tail-stream-1.0.3.tgz_1486021150989_0.1454906843136996"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T12:15:20.736Z","contributors":[]},"1.1.0":{"name":"fs-tail-stream","version":"1.1.0","description":"fs.createReadStream that supports ongoing tailing of files","main":"index.js","scripts":{"pretest":"semistandard","test":"tape test/*.js"},"repository":{"type":"git","url":"git+https://github.com/eugeneware/fs-tail-stream.git"},"keywords":["fs","createReadStream","tail","tailing","watch","watching"],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/eugeneware/fs-tail-stream/issues"},"dependencies":{"once":"^1.4.0"},"devDependencies":{"concat-stream":"^1.6.0","redtape":"^1.0.0","semistandard":"^9.2.1","tape":"^4.4.0"},"gitHead":"643349485a86b93fe1388de49669947a68f4378f","homepage":"https://github.com/eugeneware/fs-tail-stream#readme","_id":"fs-tail-stream@1.1.0","_shasum":"9ed27682cee6ae3657f84a0bf0fedb3b171295a7","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"anonymous","email":"eugene@noblesamurai.com"},"dist":{"shasum":"9ed27682cee6ae3657f84a0bf0fedb3b171295a7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-tail-stream/-/fs-tail-stream-1.1.0.tgz","size":14295,"integrity":"sha512-0d/g2BZ2ayr/Z3Efdre9SvSvAImKBLK2CXQ2z3nMErN8fWPiIcCqVrPYgr2jgP+SG0wFCRMJN1tx36X1oD93PQ=="},"maintainers":[{"name":"anonymous","email":"eugene@noblesamurai.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-tail-stream-1.1.0.tgz_1486025361526_0.3509775805287063"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T12:15:20.828Z","contributors":[]}},"dist-tags":{"latest":"1.1.0"},"name":"fs-tail-stream","time":{"created":"2022-01-26T16:51:47.678Z","modified":"2022-01-26T16:51:47.678Z","1.0.1":"2017-02-02T07:20:02.849Z","1.0.2":"2017-02-02T07:28:07.848Z","1.0.3":"2017-02-02T07:39:12.659Z","1.1.0":"2017-02-02T08:49:23.388Z"},"readme":"# fs-tail-stream\n\n`fs.createReadStream` that supports ongoing tailing of files\n\n[![build status](https://secure.travis-ci.org/eugeneware/fs-tail-stream.png)](http://travis-ci.org/eugeneware/fs-tail-stream)\n\nThe built in `fs.createReadStream` function stops streaming once the file has\ncome to an end.\n\nIf you want to tail the file so that it keeps streaming data when the file grows\nthen you're out of luck.\n\nThis module adds a `{ tail: true }` option to the options which will keep\nstreaming data as data is added to the file, or until the `.close()` method\nis called on the read stream.\n\nBecause this module wraps the underlying `fs.createReadStream` function all\nthe options work as expected.\n\n## Installation\n\nThis module is installed via npm:\n\n``` bash\n$ npm install fs-tail-stream\n```\n\n## Example Usage\n\n``` js\nvar fst = require('fs-tail-stream');\nvar fs = require('fs');\nvar ws = fs.createWriteStream(tmpFile, { flags: 'a' });\n\n// file with the text 'hello' in it\nvar tmpFile = '/tmp/my-temp-file.txt';\n\n// same parameters as `fs.createReadStream`, but pass through `tail: true`\nfst.createReadStream(tmpFile, { encoding: 'utf8', start: 80, tail: true })\n  .on('sync', function () {\n    // called when at the end of the file\n    var self = this;\n    // write some new data to the file\n    ws.write('world', 'utf8', function (err) {\n      // stop watching for files, and let the file stream end\n      // otherwise the file watching will be indefinite and the process\n      // won't' exit\n      self.close();\n    });\n  })\n  // will print out both the existing contents of the file, plus the\n  // newly added data\n  .on('data', console.log);\n  // prints out:\n  //   hello\n  //   world\n```","users":{}}