{"_id":"gartal","_rev":"6-6dac2b88ddcecc172feea9d3f2ef241c","name":"gartal","description":"Read bytes, ints, strings and more from streams as promises","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"gartal","version":"1.0.0","description":"Read bytes, ints, strings and more from streams as promises","main":"lib/index.js","scripts":{"compile":"tsc --project tsconfig.json --declaration","test":"mocha --reporter tap --require should"},"keywords":["stream","bytes","binary","read","async","await"],"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"license":"ISC","devDependencies":{"@types/node":"^8","mocha":"*","should":"*","stream-buffers":"^3","typescript":"^2.4.1"},"gitHead":"d7470601cb11a722ce53a7d42bbe7534467999e7","bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"homepage":"https://github.com/sehrope/node-gartal#readme","_id":"gartal@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"sehrope","email":"sehrope@jackdb.com"},"maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"dist":{"integrity":"sha512-MauB/ly/s3CW5aFpM7ltHp+K13kpCFuylh/C6ynOIWRHIgvjlivMZduPSyCJNh4uio3WVfezii+/8fvXl6XI/Q==","shasum":"9d5a314ed0091ac2d46f5af475a15dc31617da28","tarball":"https://registry.npmjs.org/gartal/-/gartal-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICj/zownaszM3CVw5ukXWUwDkoIshms+lPRFDUWVoCcsAiEAh8j8GygneMwYYOCPGKeqVbiov3vAZhRuq6AGrDdXJ8o="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.0.0.tgz_1499534148152_0.3902868644800037"},"directories":{}},"1.1.0":{"name":"gartal","version":"1.1.0","description":"Read bytes, ints, strings and more from streams as promises","main":"lib/index.js","scripts":{"compile":"tsc --project tsconfig.json --declaration","test":"mocha --reporter tap --require should"},"keywords":["stream","bytes","binary","read","async","await"],"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"license":"ISC","devDependencies":{"@types/node":"^8","mocha":"*","should":"*","stream-buffers":"^3","typescript":"^2.4.1"},"gitHead":"bcc27cf6e0fb5cdd2c5943fbf2b25020441ee0da","bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"homepage":"https://github.com/sehrope/node-gartal#readme","_id":"gartal@1.1.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"sehrope","email":"sehrope@jackdb.com"},"maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"dist":{"integrity":"sha512-aYqhn8F4tqjAiAhecRCEm3mBHitWhnUfaPrmZSg9eoSVh4pT3hT5DGBgH9RW28w7yni0bxF4G683lBi0L5jwXg==","shasum":"e1b2557b09cb679216c9cfcf6ba59f8366915511","tarball":"https://registry.npmjs.org/gartal/-/gartal-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8iwB01YaKr/bUYIhhnu5lcI/s3ltCijJ3130YiCTCEgIhAJHMmwly+UDGQy57YIZe+nq8KX/bM94OBkGKusBRCilH"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.1.0.tgz_1499537055375_0.3495683721266687"},"directories":{}},"1.1.1":{"name":"gartal","version":"1.1.1","description":"Read bytes, ints, strings and more from streams as promises","main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"compile":"tsc --project tsconfig.json --declaration","test":"mocha --reporter tap --require should"},"keywords":["stream","bytes","binary","read","async","await"],"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"license":"ISC","devDependencies":{"@types/node":"^8","mocha":"*","should":"*","stream-buffers":"^3","typescript":"^2.4.1"},"gitHead":"2f3b1b8c921541977a8b64389807849135809c62","bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"homepage":"https://github.com/sehrope/node-gartal#readme","_id":"gartal@1.1.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"sehrope","email":"sehrope@jackdb.com"},"maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"dist":{"integrity":"sha512-XFu08j9S/5eHdweSfJsE5jahU2VBaiToXjfEanYVVBmcaykHI3PBu37gqZQZawp+F5yJ6/25bCouAENNLz3RQw==","shasum":"4491d6bcd18cfcfe7d8e70a32e3a563002048f24","tarball":"https://registry.npmjs.org/gartal/-/gartal-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6qCnelW+K5uU1MO3sXVSUbi/oKzuVdmk/Ohdz3LB28AiEAyOEKddlknqyf0XVl3SFUdsgc/hB1YbxGF+ITBM2ysuU="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.1.1.tgz_1499537281586_0.10317112086340785"},"directories":{}},"1.1.2":{"name":"gartal","version":"1.1.2","description":"Read bytes, ints, strings and more from streams as promises","main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"compile":"tsc --project tsconfig.json --declaration","test":"mocha --reporter tap --require should"},"keywords":["stream","bytes","binary","read","async","await"],"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"license":"ISC","devDependencies":{"@types/node":"^8","mocha":"*","should":"*","stream-buffers":"^3","typescript":"^2.4.1"},"gitHead":"1f07d553ba2671334212c365cc76c66257b93f75","bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"homepage":"https://github.com/sehrope/node-gartal#readme","_id":"gartal@1.1.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"sehrope","email":"sehrope@jackdb.com"},"maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"dist":{"integrity":"sha512-/rGjzat50n+PAeiVqXcH+ibkjIDziYYCeVtG7u2bTFEtq95IB7ufEJ8g25L0VLnNDt+0LdLGi7Omx3BfsmtLSQ==","shasum":"1fe195b1d69d9a894bcb39ac1ab98db45e5388f7","tarball":"https://registry.npmjs.org/gartal/-/gartal-1.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKHVgTbaTF9a64jvw6TH8B/aAO+imIaUuxcxf6xCFEPAIhALZPAtMj/V/qGCYglWhsX3ra0R5EtXy5UBb8WsKfDVzK"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.1.2.tgz_1499616011284_0.7890660872217268"},"directories":{}},"2.0.0":{"name":"gartal","version":"2.0.0","description":"Read bytes, ints, strings and more from streams as promises","engines":{"node":">=8"},"main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"compile":"tsc --project tsconfig.json --declaration","test":"mocha --reporter tap --require should","lint":"tslint --project tsconfig.json"},"keywords":["stream","bytes","binary","read","async","await"],"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"license":"ISC","devDependencies":{"@types/node":"^8","mocha":"*","should":"*","stream-buffers":"^3","tslint":"^5.16.0","typescript":"^3.4.5"},"gitHead":"4b25dfe642a7f8a73c99c8e8fc56079767455627","bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"homepage":"https://github.com/sehrope/node-gartal#readme","_id":"gartal@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"sehrope","email":"sehrope@jackdb.com"},"dist":{"integrity":"sha512-27BFIJYxM5CpPq9GxfU0MyKOUsBVp+ePLROAKGcvBcUv8J/JLZhk09MjKdf1AROis9qBHFf0S0HUgLotMjvOfQ==","shasum":"ac2d14894ca78be2832ebd364d5fcf3b817584a6","tarball":"https://registry.npmjs.org/gartal/-/gartal-2.0.0.tgz","fileCount":5,"unpackedSize":13992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxzB2CRA9TVsSAnZWagAA/w4P/jCCrYtiKR9bX/c2cgS0\nBJiwZDSwJJ5py+6+KvAsNrnjEb31TdrJLsi4k0ihSzYwhfFnx0fhEtaLstH7\nAOAsp4KUtSUJKgvhO0gX9pttT9luvg87MrPpwu7ZJwjqJfsBe3hvVpy7Q1X4\nQhd7zYhVeYIFpFaOPuEH+ZD++46HXBRwcloVAfjjkptRpgTk37qWMd9wKyIk\nP1w2FgulgLCQzWDXtHzzvjavIuoPm50LCsx60xURWsOoRe90I7j5xx0nuyjM\nUtbJHvCKgmTgronv9xrtGzKL13m4PoOuFJtFyWXi35syciRt1NdUzhNYtYhN\nkalJr7Q/61lVwc8zXWmBVxsqSRBx9x8hFVeHxh90RX5lFM6sk9YRS3jaDYo0\n790XeedcWQw7dTVmF2T2qMRuuEa7fKtCeIGr0rpKl50zuUfplwIsLea83V38\nkuufks5Af7rbjM5w4bn2l0ZVnO3im2df1wGkfO/uGIziIw9rqEkTljwDBL/S\nOu62I6ciZfsC+cHemWBNM1RDeWajo1nnhBxsTLWV1ngA1lW9cPro9qY8dZl+\nbKiR4M+jd3a0dTUDIjwlqVLE8W5+qLAL4U+RSru4ozACgrpAaUG6EytUi0yF\nWfjnagAFwOHfVAcqg24vOG6aH51iStlnQb1B6StUrJU1y0Ujjzo7nn9Sm15a\n3W1F\r\n=jiFh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWfeJzFo+FeztK3Jj5JUgZP8shXc+DN4mfc+3Oj0g2bwIgQfMlAXpotvWyR2Dg3IEVW5wMLsyyIws/Dtu1tVgO85I="}]},"maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal_2.0.0_1556557941484_0.6658386632840887"},"_hasShrinkwrap":false}},"readme":"# gartal\n\n[![NPM](https://nodei.co/npm/gartal.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/gartal/)\n\n[![Build Status](https://travis-ci.org/sehrope/node-gartal.svg?branch=master)](https://travis-ci.org/sehrope/node-gartal)\n\n# Overview\nRead bytes, numbers and text from streams as Promises.\n\nCombined with async/await, this makes it very easy to interact with binary protocols.\n\n* [Install](#install)\n* [Usage](#usage)\n* [Features](#features)\n* [Building and Testing](#building-and-testing)\n* [License](#license)\n\n# Install\n\n    $ npm install gartal --save\n\n# Usage\n\n    // Load the module\n    const gartal = require('gartal');\n\n    // Read 10 bytes\n    const buf = await gartal.readBytes(stream, 10);\n\n    // Read a 32-bit big endian integer\n    const num = await gartal.readInt32BE(stream);\n\n    // Read a fixed length string\n    const text = await gartal.readText(stream, 8);\n\n    // Read a UUID serialized as a 36-byte hex string with dashes\n    const uuid = await gartal.readTextUuid(stream);\n\n    // Read a UUID serialized as 16-bytes\n    const uuid = await gartal.readBinaryUuid(stream);\n\n# Dependencies\n\nNone!\n\n# Features\n* Natively promisified for easy async/await integration\n* Supports reading arbitrarily sized byte buffers\n* Supports reading fixed length text strings\n* Supports reading numeric types (integers, doubles, etc)\n\n# Building and Testing\nTo build the module run:\n\n    $ make\n\nThen, to run the tests run:\n\n    $ make test\n\n# License\nISC. See the file [LICENSE](LICENSE).\n","maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"time":{"modified":"2022-05-03T04:01:46.576Z","created":"2017-07-08T17:15:49.111Z","1.0.0":"2017-07-08T17:15:49.111Z","1.1.0":"2017-07-08T18:04:16.294Z","1.1.1":"2017-07-08T18:08:02.525Z","1.1.2":"2017-07-09T16:00:12.175Z","2.0.0":"2019-04-29T17:12:21.638Z"},"homepage":"https://github.com/sehrope/node-gartal#readme","keywords":["stream","bytes","binary","read","async","await"],"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"license":"ISC","readmeFilename":"README.md","users":{"wmhilton":true}}