{"_id":"uint64le","_rev":"1-2a7fde7ca5da4fbb357772fd173a8c36","name":"uint64le","dist-tags":{"latest":"1.0.0"},"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":{"integrity":"sha512-ym43OT6w7RdYAjMfR57i05H/jhrAhUZsdUf0ju6UTvd8TLActpAlfeEN9EwfUoR+jeUNXdEhmFjqF/RfrqSsrA==","shasum":"2b870d7b96effd5bd0bcfdbcd36e9fa8c0bbcc9e","tarball":"https://registry.npmjs.org/uint64le/-/uint64le-1.0.0.tgz","fileCount":5,"unpackedSize":4458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCK1JCRA9TVsSAnZWagAAKv8P/1jcYpIucedvnL+Pc2A6\n3qbTene/WGJy+6nq04nn3IRM6nK/W/WSb5CMExRcdjRXYgw1h8TWJWDSj9ZU\ncnFW6rvMF24bqJG22hwLOuqWXyJLZtQqmjRtgYAkhXjzxkZnkGQ3os3SwM2A\nBb9YMB29B2xkwLBGzPeTU72JexepPFqgaRbEH5PeUogB4oBNVkdkQn2ZkAsU\n4cbdVq8UIhSCHNmmI8VMAf2A5JmMBD89rGnIgrOGsDCfIU+9IbHErOcz6dw1\ncc/mXDhUbB4Ra23k0iyQiupn0nnm0YvMKx677A4gSmJUQB7fVYE7KSl4Ne1p\nhCgUwSUovtr9/0TfPcDXi4Y/5ZXk/4aGwEdWVimJ1jGC+rPTi4SEu0vccNe2\nJEITP1XsIDi1z7DaRVkFuIokzBrt9iLaOZSSs/VuKR2ek/LuEL5Dqfb8RAUT\nq3kXpYOOkbdz+zDnfQmrYKg6HETTEBY20Y+Xzy5DI84oyQ0EIdCw9/p+zIHk\nEQH6QEffe86W+D00OJDr/mBMha+fAdatxJf9CYr6R2OMP+BS2zc3Eg78o4e3\nkuxLxI2mv7L6CD+5+ElcK3uQ0/LMw559gdcg71seW3xsk1V9fULLIQj5FM7Q\nuUW8P/HSoGPz37VSaWgSHl3ey5jL5pr9491s2jNhjEaEfEFiApRYFFhaLnKi\niHU8\r\n=B//S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0iB5Q1B/ckF6hddbXrcD5sXEWsklBpz0n7FnJcvpzUAiAxtfMtPh7KdMXXs380vCrb4+u7lZ8OqT4Zkqi8oZf6QQ=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_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}},"time":{"created":"2019-06-18T09:22:16.928Z","1.0.0":"2019-06-18T09:22:17.034Z","modified":"2022-05-22T16:45:25.228Z"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"description":"Encode / decode little endian unsigned 64 bit integers","homepage":"https://github.com/mafintosh/uint64le","repository":{"type":"git","url":"git+https://github.com/mafintosh/uint64le.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/uint64le/issues"},"license":"MIT","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","readmeFilename":"README.md"}