{"_id":"uint64le","_rev":"1284644","name":"uint64le","description":"Encode / decode little endian unsigned 64 bit integers","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-10-19T10:51:05.000Z","created":"2019-06-18T09:22:17.034Z","1.0.0":"2019-06-18T09:22:17.034Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/uint64le.git"},"versions":{"1.0.0":{"name":"uint64le","version":"1.0.0","description":"Encode / decode little endian unsigned 64 bit integers","main":"index.js","devDependencies":{"standard":"^12.0.1","tape":"^4.10.2"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/uint64le.git"},"scripts":{"test":"standard && tape test.js"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/uint64le/issues"},"homepage":"https://github.com/mafintosh/uint64le","gitHead":"4f20b8babe390722fa975baf742fe407fc5d1bc9","_id":"uint64le@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"2b870d7b96effd5bd0bcfdbcd36e9fa8c0bbcc9e","size":2058,"noattachment":false,"key":"/uint64le/-/uint64le-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/uint64le/download/uint64le-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uint64le_1.0.0_1560849736928_0.5816048628745731"},"_hasShrinkwrap":false,"publish_time":1560849737034,"_cnpm_publish_time":1560849737034}},"readme":"# uint64le\n\nEncode / decode little endian unsigned 64 bit integers\n\n```\nnpm install uint64le\n```\n\n## Usage\n\n``` js\nconst uint64le = require('uint64le')\n\nconst buf = uint64le.encode(42) // returns a 8 byte buffer with 42 encoded\nconsole.log(uint64le.decode(buf)) // returns 42\n```\n\n## Notice\n\nJavascript (currently) only supports integers up to `2^53 - 1` without any\nloss of precision so beware of this if you encode / decode any integers larger than that.\n\n## API\n\n#### `buffer = uint64le.encode(num, [buffer], [offset])`\n\nEncode a number as a little endian 64 bit unsigned integer.\nOptionally you can pass a buffer + offset as the 2nd and 3rd argument\nand the number will be encoded into that buffer at the given offset.\n\n#### `num = uint64le.decode(buffer, [offset])`\n\nDecode a number from a buffer.\n\n#### `length = uint64le.encodingLength(num)`\n\nAlways returns `8`. Added to comply with the standard encoding interface in node.\nSimilarly `uint64le.encode.bytes` and `uint64le.decode.bytes` is also set to `8`.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/uint64le","bugs":{"url":"https://github.com/mafintosh/uint64le/issues"},"license":"MIT"}