{"dist":{"shasum":"356bcbe1ff8d923a15a74c493593b08e3374c519","tarball":"https://registry.npmjs.org/cursor/-/cursor-0.1.1.tgz","integrity":"sha512-nXviip+z5nBrTXZbYpObPDsvMxPFdrWzYRO9k70Vl0VVQ1zaJ+1uJ47FV9IKHifqV08LtC2BYMO7zsVXDv08bA==","signatures":[{"sig":"MEYCIQDXfq7FVkHcgGMuvRdcxroHYjJ70ralBnb2vlDYt5+eHAIhAJhKwzvX0epP+u59daqWOJDY23HG3IecN8C0KyTby7A2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"cursor","author":{"name":"Isao Jonas","email":"isao@dimerica-industries.com"},"readme":"# Description\nWrap your buffers! Fluid API! Other things!\n\n# Usage\n```javascript\nreturn Cursor.create(2)\n\t.writeInt8(10)\n\t.writeUInt32BE(10)\n\t.buffer();\n``` \n\n##Construction\n```javascript\n//both work\nvar a = new Cursor(buffer);\nvar b = Cursor(buffer);\n\n//also accepts Buffer constructor arguments\nvar c = Cursor(10); //size\nvar d = Cursor([0x01, 0x02]); // octals\n```\n###Cloning\n```javascript\n//create a cursor pointing at the same buffer\n//and the same index\nvar pos = curs.tell();\nvar cl = curs.clone();\npos == cl.tell(); //true\n\n//create a cursor and immediately seek to a new pos\nvar pos = curs.rewind().tell();\nvar cl = curs.clone(100);\ncl.tell() == pos; //false\n```\n\n##Reading\n\nCursor implements all of the `Buffer.readXXX` methods in addition to `toString`.\n\n##Writing\n\nCursor implements all of the `Buffer.writeXXX` methods in addition to `write` and `fill`.\n\nHowever, Cursor deviates from Buffer by not offering a `copy` method. Instead, use `copyFrom`\n\n```javascript\n//bytes from c2 are copied into c1\nc1.copyFrom(c2);\n```\n\n# License (MIT)\n```\nCopyright (c) 2013 Dimerica Industries, LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n    \nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n    \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","license":"MIT","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jonasi","email":"isao@dimerica-industries.com"},"repository":{"url":"https://github.com/dimerica-industries/node-cursor/","type":"git"},"_npmVersion":"1.1.69","description":"Cursor implementation for node buffers","directories":{},"maintainers":[{"name":"jonasi","email":"isao@dimerica-industries.com"}],"readmeFilename":"README.md","_id":"cursor@0.1.1","version":"0.1.1"}