{"_id":"gartal","_rev":"4170295","name":"gartal","description":"Read bytes, ints, strings and more from streams as promises","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sehrope","email":"sehrope@jackdb.com"}],"time":{"modified":"2026-03-01T21:13:28.000Z","created":"2017-07-08T17:15:49.111Z","2.0.0":"2019-04-29T17:12:21.638Z","1.1.2":"2017-07-09T16:00:12.175Z","1.1.1":"2017-07-08T18:08:02.525Z","1.1.0":"2017-07-08T18:04:16.294Z","1.0.0":"2017-07-08T17:15:49.111Z"},"users":{},"author":{"name":"Sehrope Sarkuni","email":"sehrope@jackdb.com"},"repository":{"type":"git","url":"git+https://github.com/sehrope/node-gartal.git"},"versions":{"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":{"shasum":"ac2d14894ca78be2832ebd364d5fcf3b817584a6","size":3489,"noattachment":false,"key":"/gartal/-/gartal-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gartal/download/gartal-2.0.0.tgz"},"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,"publish_time":1556557941638,"_cnpm_publish_time":1556557941638,"_cnpmcore_publish_time":"2021-12-16T15:36:46.256Z"},"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":{"shasum":"1fe195b1d69d9a894bcb39ac1ab98db45e5388f7","size":3237,"noattachment":false,"key":"/gartal/-/gartal-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gartal/download/gartal-1.1.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.1.2.tgz_1499616011284_0.7890660872217268"},"directories":{},"publish_time":1499616012175,"_hasShrinkwrap":false,"_cnpm_publish_time":1499616012175,"_cnpmcore_publish_time":"2021-12-16T15:36:46.520Z"},"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":{"shasum":"4491d6bcd18cfcfe7d8e70a32e3a563002048f24","size":3238,"noattachment":false,"key":"/gartal/-/gartal-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gartal/download/gartal-1.1.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.1.1.tgz_1499537281586_0.10317112086340785"},"directories":{},"publish_time":1499537282525,"_hasShrinkwrap":false,"_cnpm_publish_time":1499537282525,"_cnpmcore_publish_time":"2021-12-16T15:36:46.770Z"},"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":{"shasum":"e1b2557b09cb679216c9cfcf6ba59f8366915511","size":3230,"noattachment":false,"key":"/gartal/-/gartal-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gartal/download/gartal-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.1.0.tgz_1499537055375_0.3495683721266687"},"directories":{},"publish_time":1499537056294,"_hasShrinkwrap":false,"_cnpm_publish_time":1499537056294,"_cnpmcore_publish_time":"2021-12-16T15:36:47.023Z"},"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":{"shasum":"9d5a314ed0091ac2d46f5af475a15dc31617da28","size":3192,"noattachment":false,"key":"/gartal/-/gartal-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gartal/download/gartal-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gartal-1.0.0.tgz_1499534148152_0.3902868644800037"},"directories":{},"publish_time":1499534149111,"_hasShrinkwrap":false,"_cnpm_publish_time":1499534149111,"_cnpmcore_publish_time":"2021-12-16T15:36:47.291Z"}},"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","_attachments":{},"homepage":"https://github.com/sehrope/node-gartal#readme","bugs":{"url":"https://github.com/sehrope/node-gartal/issues"},"license":"ISC"}