{"dist":{"shasum":"00ea96c3a8b9fa17d6b2c8b0cb0b97a407081aa1","tarball":"https://registry.npmjs.org/buffered-writer/-/buffered-writer-0.1.12.tgz","integrity":"sha512-1sQzqbzRwueDTdiznhFNl0NhpRcu3+BRAzmDudQpe34DsqBTH9KIcge+7pGudoJv2RDJ/YkMEMdKWixGiXldmQ==","signatures":[{"sig":"MEUCIQDwchAIKfeh/OgirvEG9iYOfTR88q1mWovNxz3Wo7OVhAIgZo+CG1IQ1aLi7OqoTGZ4efEj0fVjnk7aUqjppezxPCQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"buffered-writer","name":"buffered-writer","author":{"name":"Gabriel Llamas"},"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)","engines":{"node":">=0.4.10"},"_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"keywords":["buffer","writer","line","write line","file","write file","write text file","write binary file","binary"],"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.html","type":"MIT"}],"deprecated":"DO NOT USE, DEPRECATED","repository":{"url":"git://github.com/Gagle/Node-BufferedWriter.git","type":"git"},"_npmVersion":"1.1.62","description":"Fully configurable buffered writer.","directories":{},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"dependencies":{"errno-codes":"*"},"_id":"buffered-writer@0.1.12","version":"0.1.12"}