{"_id":"circular-append-file","_rev":"3-593775f131b858dd2fb4cb86363d2487","name":"circular-append-file","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"circular-append-file","version":"1.0.0","description":"A simple appendable-file interface which enforces a size cap by overwriting itself.","main":"index.js","scripts":{"test":"ava -s ./test.js"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","dependencies":{"multistream":"^2.1.0"},"devDependencies":{"ava":"^0.25.0","concat-stream":"^1.6.1","tempy":"^0.2.1"},"repository":{"type":"git","url":"git+https://github.com/pfrazee/circular-append-file.git"},"keywords":["file","append"],"bugs":{"url":"https://github.com/pfrazee/circular-append-file/issues"},"homepage":"https://github.com/pfrazee/circular-append-file#readme","gitHead":"2d7a8090b8e495396ad32956cc290950f08400ad","_id":"circular-append-file@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"7.6.0","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"dist":{"integrity":"sha512-S0L1sjiE7PeB09s+pYWh8+FIEA5HTm9u76ZH5X0/v7c2E0cVpB3JAfmTnq2cB0GvygW6lN7lcFW8PagAtHL4CA==","shasum":"3b2b82f33317c2e2d4fae3b711dd0f77b9f2c1e1","tarball":"https://registry.npmjs.org/circular-append-file/-/circular-append-file-1.0.0.tgz","fileCount":4,"unpackedSize":5092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt7AcbpSX071YO5Ahi8k1tV+vBZ0VF2RJrzqR77ssqKwIhAJRnc6NM1HVoNgxRA4Uh39b5RzWBVw5I3A3X7xzoCrrR"}]},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/circular-append-file_1.0.0_1520873227941_0.9983257566907588"},"_hasShrinkwrap":false},"1.0.1":{"name":"circular-append-file","version":"1.0.1","description":"A simple appendable-file interface which enforces a size cap by overwriting itself.","main":"index.js","scripts":{"test":"ava -s ./test.js"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"license":"MIT","dependencies":{"multistream":"^2.1.0"},"devDependencies":{"ava":"^0.25.0","concat-stream":"^1.6.1","tempy":"^0.2.1"},"repository":{"type":"git","url":"git+https://github.com/pfrazee/circular-append-file.git"},"keywords":["file","append"],"bugs":{"url":"https://github.com/pfrazee/circular-append-file/issues"},"homepage":"https://github.com/pfrazee/circular-append-file#readme","gitHead":"b5018d1c8aa3043ab9012fdc1605fee1df06ceda","_id":"circular-append-file@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"7.6.0","_npmUser":{"name":"pfraze","email":"pfrazee@gmail.com"},"dist":{"integrity":"sha512-BUDFvrBTCdeVhg9E05PX4XgMegk6xWB69uGwyuATEg7PMfa9lGU1mzFSK0xWNW2O0i9CAQHN0oIdXI/kI2hPkg==","shasum":"5d218c5b04556cd1d2eeee697691dddd206c514b","tarball":"https://registry.npmjs.org/circular-append-file/-/circular-append-file-1.0.1.tgz","fileCount":4,"unpackedSize":5133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBS69eRRWA4xi+LnsILFSVoqeWWfl0Gcf0RUN5fcGel9AiB3rh6p76LlKjFOicPAHnbyp4bhYk8EP5poAzRzacp7ag=="}]},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/circular-append-file_1.0.1_1520873328890_0.6694363052292038"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-12T16:47:07.891Z","1.0.0":"2018-03-12T16:47:08.095Z","modified":"2022-04-12T06:24:47.994Z","1.0.1":"2018-03-12T16:48:49.029Z"},"maintainers":[{"name":"pfraze","email":"pfrazee@gmail.com"}],"description":"A simple appendable-file interface which enforces a size cap by overwriting itself.","homepage":"https://github.com/pfrazee/circular-append-file#readme","keywords":["file","append"],"repository":{"type":"git","url":"git+https://github.com/pfrazee/circular-append-file.git"},"author":{"name":"Paul Frazee","email":"pfrazee@gmail.com"},"bugs":{"url":"https://github.com/pfrazee/circular-append-file/issues"},"license":"MIT","readme":"# circular-append-file\n\nA simple appendable-file interface which enforces a size cap by overwriting itself.\nA good way to maintain a log where you want to drop history after you hit a size limit.\n\nCurrently clears the file on open, then will write each append to the end until the `maxSize` is hit.\nWill then circle back to the top and continue writing.\n\nCurrently only supports strings.\n\n```js\nconst CircularAppendFile = require('circular-append-file')\n\nlet log = CircularAppendFile('./app.log', {\n  maxSize: 1024 // 1kb (default is 32mb)\n})\nlog.append('Hello\\n')\nlog.append('World!\\n')\nlog.createReadStream().pipe(process.stdout)\nlog.close()\n```","readmeFilename":"README.md"}