{"id":21540320,"url":"https://github.com/lostsource/buffer-read-await","last_synced_at":"2025-03-17T21:45:35.956Z","repository":{"id":57145089,"uuid":"204307260","full_name":"lostsource/buffer-read-await","owner":"lostsource","description":"asynchronously read data from incoming buffer stream","archived":false,"fork":false,"pushed_at":"2019-08-31T21:55:38.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-24T09:20:30.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostsource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-25T14:41:51.000Z","updated_at":"2019-08-25T15:20:43.000Z","dependencies_parsed_at":"2022-08-22T17:40:32.719Z","dependency_job_id":null,"html_url":"https://github.com/lostsource/buffer-read-await","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbuffer-read-await","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbuffer-read-await/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbuffer-read-await/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostsource%2Fbuffer-read-await/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostsource","download_url":"https://codeload.github.com/lostsource/buffer-read-await/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117066,"owners_count":20400739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T04:18:04.701Z","updated_at":"2025-03-17T21:45:35.927Z","avatar_url":"https://github.com/lostsource.png","language":"JavaScript","readme":"# buffer-read-await\nAsynchronously read data from incoming buffer stream\n\n## Installation\n\n```\nnpm install buffer-read-await\n```\n\n## Usage\n### Create a reader\n\n```\nconst BufferReadAwait = require('buffer-read-await');\nbfrReader = BufferReadAwait.alloc(1024);\n```\n\n### Append data\n```\nbfrReader.append(buffer);\n```\n### Read data\nAny of the standard NodeJS Buffer readers can be used. (readInt8, readUInt8, readInt16BE, readInt16LE, readUInt16BE, readUInt16LE, readInt32BE, readInt32LE, readUInt32BE, readUInt32LE, readBigInt64BE, readBigInt64LE, readBigUInt64BE, readBigUInt64LE)\n```\nlet testbyte = await bfrReader.readUInt8();\n```\nThe promise will resolve once enough data has been appended. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsource%2Fbuffer-read-await","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostsource%2Fbuffer-read-await","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostsource%2Fbuffer-read-await/lists"}