{"_id":"buffered-writer","_rev":"168-1a6084798abcb5244014290c10ec41cf","name":"buffered-writer","description":"Writes buffered data to files","dist-tags":{"latest":"0.2.3"},"versions":{"0.0.1":{"name":"buffered-writer","version":"0.0.1","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.0.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"e3ef347b8eafe0c3c2d600bda9391b992440d2ec","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.0.1.tgz","integrity":"sha512-fQ9vlAw22/44GNgx0wgxXbX2CQ2v6/8+TJH33zB4UgkB8SfvaLCewL5tMxBBjaKpYojBHbLdqGnWqHFwzRaOmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU1wprKdw2o7lbYTaJ/TYtDCMZwVNeFI4JPubJcQaepAIgT/Yz2NPuKub/o+sKn8B2+EI5TS5uZ5WgB76P5i2hkmU="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.0":{"name":"buffered-writer","version":"0.1.0","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.0","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"c706cd4dc8e2cf6f36ff700942eb920d062d9d94","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.0.tgz","integrity":"sha512-Au4ByoQyRcyhIpNtgPV9tt9IasybysFvOE8BbIHcUi9fMocu5TMJqhuVpQskRxXObuoqNElxO3FTQOKPPkODMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDO4QcCQ0CYCXobh12lj4CsEnUBpFtAq6IjXYN373xmsAiEAnxDA4ULT7EFfzZHyTRHKccxz7gil7oc/9eooxbkDfWo="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.1":{"name":"buffered-writer","version":"0.1.1","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"b488450e4efe4c58da0cafe9a5ce2328ae2ccc3f","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.1.tgz","integrity":"sha512-lvNSRSgBlW184Bmd84coosnMwSMoJzFosOALMZbomfXdozU/dXqJ1Rs+8ZEluxOVqeDIxBXOY4bmOvmn12U1cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWyE/POgKunD9S5/95aOw3ljn5QnAOHV6DxvZARTJ8OAIgGIg6ouG8/5VojuH6Mc+/edAaNGCDCLMU6FmYLrFOFK8="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.2":{"name":"buffered-writer","version":"0.1.2","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.2","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"0ed585332d276cc4d4d0b13c6d55cc93d509f338","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.2.tgz","integrity":"sha512-7BsLiDlK4pFOA0Hf3FS0WchlgBL/GqCHV8qvPigsbRU2eyEkRM5BEWvSf7S2w72qCwfINkHffN0feK6ODHYN7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIARULhikfg/Wu2+YF5ZfphSHNV9aGiPWyr4b2wV/Q9PNAiEAt71zWmu6eMSHThiqdS1OtsGavaFKPaW6mTplTjYvhc0="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.3":{"name":"buffered-writer","version":"0.1.3","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.3","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"1d804a4b53b95d92cbfdcfcdc9294575ef6c6c41","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.3.tgz","integrity":"sha512-kw+5f4aNksJfv9AaO8lemM5UrULHHmfoCPo7cwgJxH0yDuTXAcG1+U46nEMmbMutDmBSOCfhoGl6GKOtoO4ldw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpEKXw/fSi811WieGglYeAr8/Gm4nu4JdtCLxX3FZgaAiBm39PaAfufgET5Wbk1y1BL5FZ8gc+E+REN6H8ttwz0yg=="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.4":{"name":"buffered-writer","version":"0.1.4","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.4","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"4232b24f46d3205a01d3af8280be7d562986ed43","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.4.tgz","integrity":"sha512-jWbvd9W1XEeMXTZSaSDooYJJasy/Zm7deNJu/FBEh7M9tN+5+OFmCWclTHjtrCYhJ+CRpuXGnna97vGdNSOPOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs0eaPgtQZ9WF2G81Ljq1B/GRxT7LQ/ZlHTYYrsO3cnQIgTGgpIG0cnh5ttNLZxysfASlU2IW8JjQmk6IBfvjR6hc="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.5":{"name":"buffered-writer","version":"0.1.5","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.5","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.19","_nodeVersion":"v0.6.16","_defaultsLoaded":true,"dist":{"shasum":"4fc96811742984f076d81358a28f786cc990db91","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.5.tgz","integrity":"sha512-PYJfSt5GvbqJEdKBDYf4aM5DEhZysJficgUrn+3GwEf7U/k+a7YCURHiJi6JXtlsNZTbltWNaMx7avV4CmqKGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvTinf10SXOlt6ZPQuTIEHFYoQmOjpCffO3yKzicFKJAiB5PmykO8YhmagdBSYKo1liCOeaLIHZvIuhEFsAv+qlHQ=="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.6":{"name":"buffered-writer","version":"0.1.6","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.6","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.19","_nodeVersion":"v0.6.16","_defaultsLoaded":true,"dist":{"shasum":"da18d5c301779fcb6b547f01b896b46f4fd68ed5","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.6.tgz","integrity":"sha512-l37XWMmh+vdAmp6L9B7E/ocgDkKhip9MJjv7L4M0+IOKJw18AjtUmoTY7vimkpu6Gu4T7ahSaX/+zm/NPE0T0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfviZXfr3roxNE1z+YEoCiaV7GPBq0cjzvJOSCdRcPGQIgcfPYdNyvAlfp9RDRRON/F2VG+0SXpanBHBF8qs6LiCg="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.7":{"name":"buffered-writer","version":"0.1.7","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"_id":"buffered-writer@0.1.7","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"86da60cca6d69bc2249dd4e1ad74ffa34965a717","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.7.tgz","integrity":"sha512-FhkrKYvjasseHnfYb9EivKj8WDw+HwXKqBk+OuEH3c4qEnlGOGGa/D/Abt/I+VDl4GGGPPn112w7901zZR1GyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFQlrZbAS0lv10QulOMUa4Xyf8sEmugFGpHBJhvtvn/yAiADPwNkonjkVeZ5fynkfZsM/dwh2flrjyIjh35Ngn2Aeg=="}]},"readme":"","maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.8":{"name":"buffered-writer","version":"0.1.8","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"<a name=\"start\"></a>\r\n\r\nNode BufferedWriter\r\n===================\r\n\r\n#### Fully configurable buffered writer for node.js ####\r\n\r\n[Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)\r\n\r\nVersion: 0.1.8\r\n\r\nWhen you need to write a file you typically write the content in little chunks at a time. To avoid multiple calls to the underlying I/O layer you need to use a piece of memory called \"buffer\", so instead of writting directly to the disk, you write to the buffer and when it is filled the content is written to disk. Doing this you win performance.\r\n\r\nThis library allows you to write files using internal buffers, so you don't have to worry about them.\r\n\r\n<a name=\"availability\"></a>\r\n#### Availability [↑](#start) ####\r\n\r\nVia npm:\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\nOr simply copying `build/buffered-writer.js` into your project's directory and `require()` accordingly.\r\n\r\n***\r\n\r\n<a name=\"compatibility\"></a>\r\n#### Compatibility [↑](#start) ####\r\n\r\n✔ Node 0.4.10+\r\n\r\n***\r\n\r\n<a name=\"documentation\"></a>\r\n#### Documentation [↑](#start) ####\r\n \r\n[Reference](https://github.com/Gagle/Node-BufferedWriter/wiki/Reference)  \r\n[Examples](https://github.com/Gagle/Node-BufferedWriter/tree/master/examples)  \r\n[Change log](https://github.com/Gagle/Node-BufferedWriter/wiki/Change-log)  \r\n[MIT License](https://github.com/Gagle/Node-BufferedWriter/blob/master/LICENSE)","_id":"buffered-writer@0.1.8","dist":{"shasum":"32701a8ff04805a2f0b79ee5ba1f4479b3784647","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.8.tgz","integrity":"sha512-/3vXrRc4IfD6acBbqNB9OWftle2Oc/L0AUMiRTthwe2vh8rep4WOWD92irfOM/u7bf43PQrPtAM1hIsIGJrRtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRFmO3wxw8t+c4Y0CkrhAA8CHaORnmDOsWTL3dsCNOlAIgLVqBD9a59uQQ/7YkwhtYkhw4Iue4RXxhPK7Af4td264="}]},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.9":{"name":"buffered-writer","version":"0.1.9","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"<a name=\"start\"></a>\r\n\r\nNode BufferedWriter\r\n===================\r\n\r\n#### Fully configurable buffered writer for node.js ####\r\n\r\n[Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)\r\n\r\nVersion: 0.1.9\r\n\r\nWhen you need to write a file you typically write the content in little chunks at a time. To avoid multiple calls to the underlying I/O layer you need to use a piece of memory called \"buffer\", so instead of writting directly to the disk, you write to the buffer and when it is filled the content is written to disk. Doing this you win performance.\r\n\r\nThis library allows you to write files using internal buffers, so you don't have to worry about them.\r\n\r\n<a name=\"availability\"></a>\r\n#### Availability [↑](#start) ####\r\n\r\nVia npm:\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\nOr simply copying `build/buffered-writer.js` into your project's directory and `require()` accordingly.\r\n\r\n***\r\n\r\n<a name=\"compatibility\"></a>\r\n#### Compatibility [↑](#start) ####\r\n\r\n✔ Node 0.4.10+\r\n\r\n***\r\n\r\n<a name=\"documentation\"></a>\r\n#### Documentation [↑](#start) ####\r\n \r\n[Reference](https://github.com/Gagle/Node-BufferedWriter/wiki/Reference)  \r\n[Examples](https://github.com/Gagle/Node-BufferedWriter/tree/master/examples)  \r\n[Change Log](https://github.com/Gagle/Node-BufferedWriter/wiki/Change-Log)  \r\n[MIT License](https://github.com/Gagle/Node-BufferedWriter/blob/master/LICENSE)","_id":"buffered-writer@0.1.9","dist":{"shasum":"ca02c434f005716083577169ca103aea660c5862","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.9.tgz","integrity":"sha512-1DFjteq12QE0xA6UeQSjq9YUTqjvTiVjIxst4+QAZEibRYrBNAVF2UQnFi8tKg6T6xLzX5p2GU/kcoBxBHskzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtPHL5HYdAqw+OQwb6lknyLD/yd6t/GjJJ4W2O/GRhkAiBjwml8a6Vb+x+594gc9HDqrldpPBHwELxaMToFDm0C4Q=="}]},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.10":{"name":"buffered-writer","version":"0.1.10","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"dependencies":{"errno-codes":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"<a name=\"start\"></a>\r\n\r\nNode BufferedWriter\r\n===================\r\n\r\n#### Fully configurable buffered writer for node.js ####\r\n\r\n[Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)\r\n\r\nVersion: 0.1.10\r\n\r\nWhen you need to write a file you typically write the content in little chunks at a time. To avoid multiple calls to the underlying I/O layer you need to use a piece of memory called \"buffer\", so instead of writting directly to the disk, you write to the buffer and when it is filled the content is written to disk. Doing this you win performance.\r\n\r\nThis library allows you to write files using internal buffers, so you don't have to worry about them.\r\n\r\n<a name=\"availability\"></a>\r\n#### Availability [↑](#start) ####\r\n\r\nVia npm:\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\nOr simply copying `build/buffered-writer.js` into your project's directory and `require()` accordingly.\r\n\r\n***\r\n\r\n<a name=\"compatibility\"></a>\r\n#### Compatibility [↑](#start) ####\r\n\r\n✔ Node 0.4.10+\r\n\r\n***\r\n\r\n<a name=\"documentation\"></a>\r\n#### Documentation [↑](#start) ####\r\n \r\n[Reference](https://github.com/Gagle/Node-BufferedWriter/wiki/Reference)  \r\n[Examples](https://github.com/Gagle/Node-BufferedWriter/tree/master/examples)  \r\n[Change Log](https://github.com/Gagle/Node-BufferedWriter/wiki/Change-Log)  \r\n[MIT License](https://github.com/Gagle/Node-BufferedWriter/blob/master/LICENSE)","_id":"buffered-writer@0.1.10","dist":{"shasum":"e0830ccf09ab047286244791274f6df0f81ca434","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.10.tgz","integrity":"sha512-hxSLOW7r7iv7L5v+7xK3kM6peLqhotyUvZfDpHOWpxT5475A/Fvlx+RyqLCGxjvu9QCADS2c0+wjIdgYiqUgjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9LhvcKkF+dwV7mEgmoQobENr1zz6e4fxCWL00qLdL8AiEA2oHpTdYWsM8/F4gbLgXvi1ul1M3egSv8pINskGwus8E="}]},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.11":{"name":"buffered-writer","version":"0.1.11","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"dependencies":{"errno-codes":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"<a name=\"start\"></a>\r\n\r\nNode BufferedWriter\r\n===================\r\n\r\n#### Fully configurable buffered writer for node.js ####\r\n\r\n[Show me!](#showme) | [Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)\r\n\r\nVersion: 0.1.11\r\n\r\nWhen you need to write a file you typically write the content in little chunks at a time. To avoid multiple calls to the underlying I/O layer you need to use a piece of memory called \"buffer\", so instead of writting directly to the disk, you write to the buffer and when it is filled the content is written to disk. Doing this you win performance.\r\n\r\nThis library allows you to write files using internal buffers, so you don't have to worry about them.\r\n\r\n<a name=\"showme\"></a>\r\n#### Show me! [↑](#start) ####\r\n\r\n```javascript\r\nvar BufferedWriter = require (\"buffered-writer\");\r\n\r\nnew BufferedWriter (\"file\")\r\n\t.on (\"error\", function (error){\r\n\t\tconsole.log (error);\r\n\t})\r\n\t\r\n\t.write ([0x00, 0x01, 0x02], 0, 3) //Writes 0x00, 0x01, 0x02\r\n\t.write (new Buffer ([0x03, 0x04]), 1, 1) //Writes 0x04\r\n\t.write (0x0506) //Writes 0x05, 0x06\r\n\t.close ();\r\n```\r\n\r\n***\r\n\r\n<a name=\"availability\"></a>\r\n#### Availability [↑](#start) ####\r\n\r\nVia npm:\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\n***\r\n\r\n<a name=\"compatibility\"></a>\r\n#### Compatibility [↑](#start) ####\r\n\r\n✔ Node 0.4.10+\r\n\r\n***\r\n\r\n<a name=\"documentation\"></a>\r\n#### Documentation [↑](#start) ####\r\n \r\n[Reference](https://github.com/Gagle/Node-BufferedWriter/wiki/Reference)  \r\n[Examples](https://github.com/Gagle/Node-BufferedWriter/tree/master/examples)  \r\n[Change Log](https://github.com/Gagle/Node-BufferedWriter/wiki/Change-Log)  \r\n[MIT License](https://github.com/Gagle/Node-BufferedWriter/blob/master/LICENSE)","_id":"buffered-writer@0.1.11","dist":{"shasum":"ef5b69f929d03291c4c32160dc75395bc512adf4","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.11.tgz","integrity":"sha512-XLC9BPatMOYRxN4p7a658M9M3LZgPpK4fqcC0bZgj326iZeoIbp9qwEs28gS8q3tifiikdecfdeeoeGYuFARVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCpmWz4XJp2JGQfSwsXYwSHarKEX/iJ095AWKwPUspqgIhAJHF5isKROWeGnMiGwx2REHuuPzY3eRJoqDKwbgdoClZ"}]},"_npmVersion":"1.1.49","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.1.12":{"name":"buffered-writer","version":"0.1.12","description":"Fully configurable buffered writer.","keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":">=0.4.10"},"dependencies":{"errno-codes":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"<a name=\"start\"></a>\r\n\r\nNode BufferedWriter\r\n===================\r\n\r\n#### Fully configurable buffered writer for node.js ####\r\n\r\n[Show me!](#showme) | [Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)\r\n\r\nVersion: 0.1.12\r\n\r\nWhen you need to write a file you typically write the content in little chunks at a time. To avoid multiple calls to the underlying I/O layer you need to use a piece of memory called \"buffer\", so instead of writting directly to the disk, you write to the buffer and when it is filled the content is written to disk. Doing this you win performance.\r\n\r\nThis library allows you to write files using internal buffers, so you don't have to worry about them.\r\n\r\n<a name=\"showme\"></a>\r\n#### Show me! [↑](#start) ####\r\n\r\n```javascript\r\nvar BufferedWriter = require (\"buffered-writer\");\r\n\r\nnew BufferedWriter (\"file\")\r\n\t.on (\"error\", function (error){\r\n\t\tconsole.log (error);\r\n\t})\r\n\t\r\n\t.write ([0x00, 0x01, 0x02], 0, 3) //Writes 0x00, 0x01, 0x02\r\n\t.write (new Buffer ([0x03, 0x04]), 1, 1) //Writes 0x04\r\n\t.write (0x0506) //Writes 0x05, 0x06\r\n\t.close ();\r\n```\r\n\r\n***\r\n\r\n<a name=\"availability\"></a>\r\n#### Availability [↑](#start) ####\r\n\r\nVia npm:\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\n***\r\n\r\n<a name=\"compatibility\"></a>\r\n#### Compatibility [↑](#start) ####\r\n\r\n✔ Node 0.4.10+\r\n\r\n***\r\n\r\n<a name=\"documentation\"></a>\r\n#### Documentation [↑](#start) ####\r\n \r\n[Reference](https://github.com/Gagle/Node-BufferedWriter/wiki/Reference)  \r\n[Examples](https://github.com/Gagle/Node-BufferedWriter/tree/master/examples)  \r\n[Change Log](https://github.com/Gagle/Node-BufferedWriter/wiki/Change-Log)  \r\n[MIT License](https://github.com/Gagle/Node-BufferedWriter/blob/master/LICENSE)","_id":"buffered-writer@0.1.12","dist":{"shasum":"00ea96c3a8b9fa17d6b2c8b0cb0b97a407081aa1","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.12.tgz","integrity":"sha512-1sQzqbzRwueDTdiznhFNl0NhpRcu3+BRAzmDudQpe34DsqBTH9KIcge+7pGudoJv2RDJ/YkMEMdKWixGiXldmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwchAIKfeh/OgirvEG9iYOfTR88q1mWovNxz3Wo7OVhAIgZo+CG1IQ1aLi7OqoTGZ4efEj0fVjnk7aUqjppezxPCQ="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.2.0":{"name":"buffered-writer","version":"0.2.0","description":"Writes buffered data","keywords":["buffer","write","stream","file","binary","data"],"author":{"name":"Gabriel Llamas","email":"gaglekas@gmail.com"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":"*"},"dependencies":{"errno-codes":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"buffered-writer\r\n===============\r\n\r\n_Node.js project_\r\n\r\n#### Writes buffered data ####\r\n\r\nVersion: 0.2.0\r\n\r\nNode.js streams are not buffered, that is, when you write data to them you're doing multiple I/O calls. This module buffers the data that has to be written to disk and eases the buffer manipulation when you need to write data from different nature (strings, numbers, arrays or buffers).\r\n\r\n#### Installation ####\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\n#### Example ####\r\n\r\n```javascript\r\nvar bw = require (\"buffered-writer\");\r\n\r\nbw.open (\"file\")\r\n\t.on (\"error\", function (error){\r\n\t\tconsole.log (error);\r\n\t})\r\n\t.write ([0x00, 0x01, 0x02]) //Writes: 0x00, 0x01, 0x02\r\n\t.write (new Buffer ([0x03, 0x04]), 1, 1) //Writes: 0x04\r\n\t.write (0x0506) //Writes: 0x05, 0x06\r\n\t.write (\"a↑b\", 1) //Writes: ↑ (0xe2, 0x86, 0x91)\r\n\t.close ();\r\n```\r\n\r\n#### Methods ####\r\n\r\ntodo","readmeFilename":"README.md","_id":"buffered-writer@0.2.0","dist":{"shasum":"24761253b36beb5633a17f66a6ef215134f464a9","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.2.0.tgz","integrity":"sha512-RVZNNdAvhStueP8Cx3tHVkVolDhk9CuMYZ1qFIS6/8s26z4rkih7A/VdyYhybjthZrEYIJD2DloBS22JgtM99A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5rwXDefQPBV/evLHWSB9/TsaMhKc8AioOHgqP4kge/AiEAqjerZZuExipfmNDtVCF4zixxnDFDIzLI18BYj16Bz28="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.2.1":{"name":"buffered-writer","version":"0.2.1","description":"Writes buffered data to files","keywords":["buffer","write","stream","file","binary","data"],"author":{"name":"Gabriel Llamas","email":"gaglekas@gmail.com"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":"*"},"dependencies":{"errno-codes":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"buffered-writer\r\n===============\r\n\r\n_Node.js project_\r\n\r\n#### Writes buffered data ####\r\n\r\nVersion: 0.2.1\r\n\r\nNode.js streams are not buffered, that is, when you write data to them you're doing multiple I/O calls. This module buffers the data that has to be written to disk and eases the buffer manipulation when you need to write data from different nature (strings, numbers, arrays or buffers).\r\n\r\n#### Installation ####\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\n#### Example ####\r\n\r\n```javascript\r\nvar bw = require (\"buffered-writer\");\r\n\r\nbw.open (\"file\")\r\n\t.on (\"error\", function (error){\r\n\t\tconsole.log (error);\r\n\t})\r\n\t.write ([0x00, 0x01, 0x02]) //Writes: 0x00, 0x01, 0x02\r\n\t.write (new Buffer ([0x03, 0x04]), 1, 1) //Writes: 0x04\r\n\t.write (0x0506) //Writes: 0x05, 0x06\r\n\t.write (\"↑a\", 1) //Writes: a (0x61)\r\n\t.close ();\r\n```\r\n\r\n#### Methods ####\r\n\r\nWhen you call to `open()` a stream a `Writer` instance is returned. This object inherits from `EventEmitter` and wraps a `WriteStream`. Only an `error` event is emitted. When this ocurrs, the `Writer` is closed automatically, you don't need to close it explicitly (if you try to do so you'll get another error, you cannot close twice).\r\n\r\n- [bw.open(file[, settings])](#open)\r\n- [Writer#close([callback])](#close)\r\n- [Writer#line()](#line)\r\n- [Writer#write(buffer[, offset[, length]])](#write)\r\n\r\n<a name=\"open\"></a>\r\n__bw.open(file[, settings])__  \r\n\r\n\r\n<a name=\"close\"></a>\r\n__Writer#close([callback])__  \r\n\r\n\r\n<a name=\"line\"></a>\r\n__Writer#line()__  \r\n\r\n\r\n<a name=\"write\"></a>\r\n__Writer#write(buffer[, offset[, length]])__  \r\n","readmeFilename":"README.md","_id":"buffered-writer@0.2.1","dist":{"shasum":"2087167ca23799c42cd43c3fef74ddf6dd7cf11d","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.2.1.tgz","integrity":"sha512-vkv+ixEzHXtREsueJnUuGXkEpuMtwxCmESvuY2sqvlwlSKXm0KBlCw2vcxjEvFD0mD7Gcco96dvd1WFKTeHJEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNaaVE7cq/9PqHuc1cR9MJfqblYIs6QuHs8YvGJwi6GAiEAh0zBY4uoISO5s9SP8+84h7Odcb99j5FufVGbjmukKhQ="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.2.2":{"name":"buffered-writer","version":"0.2.2","description":"Writes buffered data to files","keywords":["buffer","write","stream","file","binary","data"],"author":{"name":"Gabriel Llamas","email":"gaglekas@gmail.com"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":"*"},"dependencies":{"errno-codes":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"buffered-writer","readme":"buffered-writer\r\n===============\r\n\r\n_Node.js project_\r\n\r\n#### Writes buffered data ####\r\n\r\nVersion: 0.2.2\r\n\r\nNode.js streams are not buffered, that is, when you write data to them you're doing multiple I/O calls. This module buffers the data that has to be written to disk and eases the buffer manipulation when you need to write data from different nature (strings, numbers, arrays or buffers).\r\n\r\n#### Installation ####\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\n#### Example ####\r\n\r\n```javascript\r\nvar bw = require (\"buffered-writer\");\r\n\r\nbw.open (\"file\")\r\n\t.on (\"error\", function (error){\r\n\t\tconsole.log (error);\r\n\t})\r\n\t.write ([0x00, 0x01, 0x02]) //Writes: 0x00, 0x01, 0x02\r\n\t.write (new Buffer ([0x03, 0x04]), 1, 1) //Writes: 0x04\r\n\t.write (0x0506) //Writes: 0x05, 0x06\r\n\t.write (\"↑a\", 1) //Writes: a (0x61)\r\n\t.close ();\r\n```\r\n\r\n#### Methods ####\r\n\r\nWhen you call to `open()` a stream a `Writer` instance is returned. This object inherits from `EventEmitter` and wraps a `WriteStream`. Only an `error` event is emitted. When this ocurrs, the `Writer` is closed automatically, you don't need to close it explicitly (if you try to do so you'll get another error, you cannot close twice).\r\n\r\n- [bw.open(file[, settings])](#open)\r\n- [Writer#close([callback])](#close)\r\n- [Writer#line()](#line)\r\n- [Writer#write(data[, offset[, length]])](#write)\r\n- [Writer#writeln(data[, offset[, length]])](#writeln)\r\n\r\n<a name=\"open\"></a>\r\n__bw.open(file[, settings])__  \r\nCreates a `Writer` and opens a stream to the given file. If the file doesn't exist it is created. The possible settings are:\r\n\r\n- bufferSize. _Number_. The buffer size. It must be greater than 0. Default is 16KB.\r\n- encoding. _String_. The file encoding. Is only used when strings are written, that is, this parameter is ignored when arrays, numbers and buffers are written. Default is \"utf8\". Possible values are: \"ascii\", \"utf8\", \"utf16le\", \"ucs2\", \"base64\", \"hex\".\r\n- append. _Boolean_. If true appends the date, if false the file is truncated. Default is false.\r\n\r\nReturns the new `Writer` instance.\r\n\r\n<a name=\"close\"></a>\r\n__Writer#close([callback])__  \r\nFlushes the remaining data and closes the `Writer`. The callback doesn't receive any parameter.\r\n\r\n<a name=\"flush\"></a>\r\n__Writer#flush(callback)__  \r\nFlushes the current data. After the callback is executed it's safe to read back the written data, the data has been stored successfully. The callback doesn't receive any parameter.\r\n\r\nThis function is typically used when you need to ensure that the data is flushed to the disk at some point before closing the stream.\r\n\r\n<a name=\"line\"></a>\r\n__Writer#line()__  \r\nWrites a line, OS dependent, `\\r\\n` on Windows, `\\n` otherwise.\r\n\r\nReturns the `Writer` instance for chaining methods.\r\n\r\n<a name=\"write\"></a>\r\n__Writer#write(data[, offset[, length]])__  \r\nWrites data. It's not flushed to the underlying I/O layer, it's queued to a buffer and when it's full it's flushed to the disk.\r\n\r\nThe data can be a Number, String, Array or Buffer.\r\n- Number. Is stored in big endian, e.g.: 0x0102  will be stored as [0x01, 0x02], 0x01 in a lower address.\r\n- String. The `open()`'s encoding parameter is used.\r\n- Array. An array of numbers. They are stored in the same order.\r\n- Buffer. The Node.js built-in Buffer.\r\n\r\nReturns the `Writer` instance for chaining methods.\r\n\r\n<a name=\"writeln\"></a>\r\n__Writer#writeln(data[, offset[, length]])__  \r\nDoes the same than `write()` but stringifies the data and concatenates an EOL, OS dependent, `\\r\\n` on Windows, `\\n` otherwise.\r\n\r\nThe offset and length specifies the slice of the given piece of data that will be written. By default offset is 0 and length is the last byte/character. The offset and length are applied to the string characters, not the bytes, for example, `write(\"↑a\", 1)` will write `a` because offset is 1. Take into account that `↑` is encoded with 3 bytes in utf8.","readmeFilename":"README.md","_id":"buffered-writer@0.2.2","dist":{"shasum":"1231f1ee43fddd7f676d1cd2f0efd5518ceb6b7e","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.2.2.tgz","integrity":"sha512-6/EpgfLYq/2z11P6lvYIKpuA7QuD1F4HuNJAv4JDDZrk/o06CnIKhU4atU47v2WPTpkOqNB1+YYaPlUbguzgnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA7CSWSHDL25U0HIl/Jl/T7IyZfCB1kmuGSR+UVGw29wIgS2gy1mLFrcmOwTB8+AVklkDx40918EmSqwyRmBNuXbw="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"},"0.2.3":{"name":"buffered-writer","version":"0.2.3","description":"Writes buffered data to files","keywords":["buffer","write","stream","file","binary","data"],"author":{"name":"Gabriel Llamas","email":"gaglekas@gmail.com"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"engines":{"node":"*"},"dependencies":{"error-provider":"*"},"devDependencies":{"mocha-runner":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"lib/buffered-writer","readme":"buffered-writer\r\n===============\r\n\r\n_Node.js project_\r\n\r\n#### Writes buffered data ####\r\n\r\nVersion: 0.2.3\r\n\r\nNode.js streams are not buffered, that is, when you write data to them you're doing multiple I/O calls. This module buffers the data that has to be written to disk and eases the buffer manipulation when you need to write data from different nature (strings, numbers, arrays or buffers).\r\n\r\n#### Installation ####\r\n\r\n```\r\nnpm install buffered-writer\r\n```\r\n\r\n#### Example ####\r\n\r\n```javascript\r\nvar bw = require (\"buffered-writer\");\r\n\r\nbw.open (\"file\")\r\n\t.on (\"error\", function (error){\r\n\t\tconsole.log (error);\r\n\t})\r\n\t.write ([0x00, 0x01, 0x02]) //Writes: 0x00, 0x01, 0x02\r\n\t.write (new Buffer ([0x03, 0x04]), 1, 1) //Writes: 0x04\r\n\t.write (0x0506) //Writes: 0x05, 0x06\r\n\t.write (\"↑a\", 1) //Writes: a (0x61)\r\n\t.close ();\r\n```\r\n\r\n#### Methods ####\r\n\r\nWhen you call to `open()` a `Writer` instance is returned. This object inherits from `EventEmitter` and wraps a `WriteStream`. Only an `error` event is emitted. When this ocurrs, the `Writer` is closed automatically, you don't need to close it explicitly (if you try to do so you'll get another error, you cannot close twice).\r\n\r\n- [bw.open(file[, settings])](#open)\r\n- [Writer#close([callback])](#close)\r\n- [Writer#flush(callback)](#flush)\r\n- [Writer#line()](#line)\r\n- [Writer#write(data[, offset[, length]])](#write)\r\n- [Writer#writeln(data[, offset[, length]])](#writeln)\r\n\r\n<a name=\"open\"></a>\r\n__bw.open(file[, settings])__  \r\nCreates a `Writer` and opens a stream to the given file. If the file doesn't exist it is created. The possible settings are:\r\n\r\n- bufferSize. _Number_. The buffer size. It must be greater than 0. Default is 16KB.\r\n- encoding. _String_. The file encoding. Is only used when strings are written, that is, this parameter is ignored when you write arrays, numbers or buffers. Default is \"utf8\". Possible values are: \"ascii\", \"utf8\", \"utf16le\", \"ucs2\", \"base64\", \"hex\".\r\n- append. _Boolean_. If true appends the data, if false the file is truncated. Default is false.\r\n- mode. _Number_ | _String_. The file attributes. Default is 0644.\r\n- start. _Number_. The offset to start writing data. Default is 0.\r\n\r\nReturns the new `Writer` instance.\r\n\r\n<a name=\"close\"></a>\r\n__Writer#close([callback])__  \r\nFlushes the remaining data and closes the `Writer`. The callback doesn't receive any parameter.\r\n\r\n<a name=\"flush\"></a>\r\n__Writer#flush(callback)__  \r\nFlushes the current data. After the callback is executed it's safe to read back the written data, the data has been stored successfully. The callback doesn't receive any parameter.\r\n\r\nThis function is typically used when you need to ensure that the data is flushed to the disk at some point before closing the stream.\r\n\r\n```javascript\r\nvar out = bw.open (\"file\").write (\"a\");\r\n//Default buffer size is 16KB so the \"a\" character is still in memory\r\n//Let's force and flush it to disk\r\nout.flush (function (){\r\n\tfs.readFile (\"file\", function (error, data){\r\n\t\tif (error) return console.log (error);\r\n\t\t//data.toString () === \"a\"\r\n\t\tout.close ();\r\n\t});\r\n});\r\n```\r\n\r\n<a name=\"line\"></a>\r\n__Writer#line()__  \r\nWrites a line, OS dependent, `\\r\\n` on Windows, `\\n` otherwise.\r\n\r\nReturns the `Writer` instance to allow method chaining.\r\n\r\n<a name=\"write\"></a>\r\n__Writer#write(data[, offset[, length]])__  \r\nWrites data. It's not flushed to the underlying I/O layer, it's queued to a buffer and when it's full it's flushed to the disk.\r\n\r\nThe data can be a Number, String, Array or Buffer.\r\n- Number. Is stored in big endian, e.g.: 0x0102  will be stored as [0x01, 0x02], 0x01 in a lower address.\r\n- String. The `open()`'s encoding parameter is used.\r\n- Array. An array of numbers. They are stored in the same order.\r\n- Buffer. The Node.js built-in Buffer.\r\n\r\nThe offset and length specifies the slice of the given piece of data that will be written. By default offset is 0 and length is the last byte/character. The offset and length are applied to the string characters, not the bytes, for example, `write(\"↑a\", 1)` will write `a` because offset is 1. Take into account that `↑` is encoded with 3 bytes in utf8.\r\n\r\nReturns the `Writer` instance to allow method chaining.\r\n\r\n<a name=\"writeln\"></a>\r\n__Writer#writeln(data[, offset[, length]])__  \r\nDoes the same as `write()` but stringifies the data and concatenates an EOL, OS dependent, `\\r\\n` on Windows, `\\n` otherwise.","readmeFilename":"README.md","_id":"buffered-writer@0.2.3","dist":{"shasum":"fad8d495a869b3cec35d3045310c9cce071b7158","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.2.3.tgz","integrity":"sha512-pJ/ItN1VQInWdmwmm8Axw8jsW6+VgPlHM+RlJHhpaZE5b+q98faZ1Ca+7v7SzQ4a/YJaiYotr1RCp+VX4ub62w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvIUqAo72XaVajX2B+9+BbRwft8zUa6FSHu+sKbXBFRwIgNmzrthijpwSnajNPPrQxfUUKee/9E8Oh1miIgDFh8CA="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"deprecated":"DO NOT USE, DEPRECATED"}},"readme":"","maintainers":[{"name":"gagle","email":"gabriel_llamas_llopis@yahoo.es"}],"time":{"modified":"2022-06-13T05:15:37.487Z","created":"2012-04-28T14:05:59.670Z","0.0.1":"2012-04-28T14:06:03.044Z","0.1.0":"2012-04-28T18:11:04.993Z","0.1.1":"2012-04-28T19:30:26.348Z","0.1.2":"2012-04-29T17:07:40.934Z","0.1.3":"2012-04-30T07:46:44.581Z","0.1.4":"2012-05-02T08:43:49.237Z","0.1.5":"2012-05-04T09:49:38.315Z","0.1.6":"2012-05-04T11:26:41.050Z","0.1.7":"2012-05-24T13:21:42.932Z","0.1.8":"2012-07-22T10:07:06.104Z","0.1.9":"2012-07-30T11:03:29.989Z","0.1.10":"2012-08-05T12:16:48.084Z","0.1.11":"2012-08-17T09:59:02.222Z","0.1.12":"2012-10-09T11:31:39.812Z","0.2.0":"2012-12-09T19:40:19.508Z","0.2.1":"2012-12-09T22:41:59.373Z","0.2.2":"2012-12-11T13:39:29.953Z","0.2.3":"2013-02-13T19:39:13.363Z"},"author":{"name":"Gabriel Llamas","email":"gaglekas@gmail.com"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-BufferedWriter.git"},"users":{"fgribreau":true}}