{"_id":"peek-readable","_rev":"264369","name":"peek-readable","description":"Read and peek from a readable stream","dist-tags":{"esm":"5.0.0-alpha.5","latest":"5.0.0"},"maintainers":[{"name":"npm:borewit","email":""}],"time":{"modified":"2023-03-27T18:52:56.000Z","created":"2020-01-06T15:34:07.003Z","5.0.0":"2022-08-02T14:03:03.862Z","4.1.0":"2022-02-06T12:50:07.811Z","5.0.0-alpha.5":"2021-12-16T20:48:35.927Z","4.0.2":"2021-12-16T20:29:10.907Z","5.0.0-alpha.4":"2021-08-01T14:06:52.274Z","4.0.1":"2021-08-01T13:46:24.248Z","5.0.0-alpha.3":"2021-07-31T10:32:39.303Z","5.0.0-alpha.2":"2021-07-27T20:03:32.318Z","5.0.0-alpha.1":"2021-07-24T20:06:21.129Z","5.0.0-alpha.0":"2021-07-24T19:45:55.012Z","4.0.0":"2021-07-16T18:09:56.591Z","3.1.4":"2021-07-11T10:12:14.341Z","3.1.3":"2021-01-11T18:55:37.330Z","3.1.2":"2021-01-10T18:08:32.404Z","3.1.1":"2021-01-03T16:04:19.401Z","3.1.0":"2020-01-06T15:34:07.003Z"},"users":{},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"versions":{"5.0.0":{"name":"peek-readable","version":"5.0.0","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha","test-coverage":"c8 npm run test","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=14.16"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","type":"module","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^9.1.1","@types/node":"^18.6.3","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","c8":"^7.12.0","chai":"^4.3.6","coveralls":"^3.1.1","del-cli":"^5.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.5.0","eslint-import-resolver-typescript":"^3.4.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.4","eslint-plugin-node":"^11.1.0","eslint-plugin-unicorn":"^40.1.0","mocha":"^10.0.0","remark-cli":"^11.0.0","remark-preset-lint-recommended":"^6.1.2","ts-node":"^10.9.1","typescript":"^4.7.4"},"keywords":["readable","buffer","stream","read"],"gitHead":"a13a25b5d99ac2cd0f2e2022b678840e9446b686","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0","_nodeVersion":"14.19.0","_npmVersion":"8.15.0","dist":{"shasum":"7ead2aff25dc40458c60347ea76cfdfd63efdfec","size":4744,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0_1659448983617_0.3043925870976818"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-02T14:03:48.564Z","publish_time":1659448983862,"_cnpm_publish_time":1659448983862},"4.1.0":{"name":"peek-readable","version":"4.1.0","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.0","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","add":"^2.0.6","chai":"^4.3.6","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-import-resolver-typescript":"^2.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-jsdoc":"^37.7.1","eslint-plugin-node":"^11.1.0","eslint-plugin-unicorn":"^40.1.0","mocha":"^9.2.0","nyc":"^15.1.0","remark-cli":"^10.0.1","remark-preset-lint-recommended":"^6.1.2","ts-node":"^10.4.0","typescript":"^4.5.5"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"c6f445d14da483e1b83bfe0099600cdc24c7f2a6","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@4.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"shasum":"4ece1111bf5c2ad8867c314c81356847e8a62e72","size":4968,"noattachment":false,"key":"/peek-readable/-/peek-readable-4.1.0.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-4.1.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_4.1.0_1644151807631_0.3060806419071711"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-06T12:50:15.525Z","publish_time":1644151807811,"_cnpm_publish_time":1644151807811},"5.0.0-alpha.5":{"name":"peek-readable","version":"5.0.0-alpha.5","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha","test-coverage":"c8 npm run test","send-coveralls":"c8 report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","type":"module","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^17.0.0","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","add":"^2.0.6","c8":"^7.8.0","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.32.0","mocha":"^9.1.3","remark-cli":"^10.0.0","remark-preset-lint-recommended":"^6.1.2","ts-node":"^10.1.0","typescript":"^4.4.2"},"keywords":["readable","buffer","stream","read"],"gitHead":"8bcda994dd4d205ea540123d6c3cd1a17a45621a","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0-alpha.5","_nodeVersion":"12.22.7","_npmVersion":"6.14.5","dist":{"shasum":"ace5dfedf7bc33f17c9b5170b9d54f69a4fba79b","size":4653,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0-alpha.5.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0-alpha.5.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0-alpha.5_1639687715792_0.5533172623392109"},"_hasShrinkwrap":false,"publish_time":1639687715927,"_cnpm_publish_time":1639687715927,"_cnpmcore_publish_time":"2021-12-16T22:11:51.997Z"},"4.0.2":{"name":"peek-readable","version":"4.0.2","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^17.0.0","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.32.0","mocha":"^9.1.3","nyc":"^15.1.0","remark-cli":"^10.0.0","remark-preset-lint-recommended":"^6.1.2","ts-node":"^10.1.0","typescript":"^4.4.2"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"e16bc413bfc545dc9b7d1d6c0c4b78c960cd0f40","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@4.0.2","_nodeVersion":"12.22.7","_npmVersion":"6.14.5","dist":{"shasum":"a5cb847e347d3eccdc37642c82d2b4155c1ab8af","size":4885,"noattachment":false,"key":"/peek-readable/-/peek-readable-4.0.2.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-4.0.2.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_4.0.2_1639686550783_0.02300115103928979"},"_hasShrinkwrap":false,"publish_time":1639686550907,"_cnpm_publish_time":1639686550907,"_cnpmcore_publish_time":"2021-12-16T22:11:52.181Z"},"5.0.0-alpha.4":{"name":"peek-readable","version":"5.0.0-alpha.4","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha","test-coverage":"c8 npm run test","send-coveralls":"c8 report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","type":"module","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/chai":"^4.2.21","@types/mocha":"^9.0.0","@types/node":"^16.4.10","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","add":"^2.0.6","c8":"^7.8.0","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.32.0","mocha":"^9.0.3","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"gitHead":"108154a7779d298fd1195fe45717aed23c2c8c99","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0-alpha.4","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"shasum":"bb609b7e062288ca84970cd2c39f7783173d244b","size":4356,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0-alpha.4.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0-alpha.4.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0-alpha.4_1627826812147_0.9195805325672599"},"_hasShrinkwrap":false,"publish_time":1627826812274,"_cnpm_publish_time":1627826812274,"_cnpmcore_publish_time":"2021-12-16T13:37:15.056Z"},"4.0.1":{"name":"peek-readable","version":"4.0.1","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/chai":"^4.2.21","@types/mocha":"^9.0.0","@types/node":"^16.4.10","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.32.0","mocha":"^9.0.3","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"5c2b42d7da781cef3b55851aa03d3228517694df","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@4.0.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"shasum":"9a045f291db254111c3412c1ce4fec27ddd4d202","size":4582,"noattachment":false,"key":"/peek-readable/-/peek-readable-4.0.1.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-4.0.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_4.0.1_1627825584109_0.6745712870304759"},"_hasShrinkwrap":false,"publish_time":1627825584248,"_cnpm_publish_time":1627825584248,"_cnpmcore_publish_time":"2021-12-16T13:37:15.263Z"},"5.0.0-alpha.3":{"name":"peek-readable","version":"5.0.0-alpha.3","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha","test-coverage":"c8 npm run test","send-coveralls":"c8 report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=12.20"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","type":"module","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^9.0.0","@types/node":"^16.4.6","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.3","add":"^2.0.6","c8":"^7.8.0","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.30.0","mocha":"^9.0.3","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"readmeFilename":"README.md","gitHead":"07d062ecf72260fff132e5703dc226da72831324","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0-alpha.3","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"shasum":"0644bc1cde62613147d04be931f9980363cccb92","size":4285,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0-alpha.3.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0-alpha.3.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0-alpha.3_1627727559045_0.16041638337794306"},"_hasShrinkwrap":false,"publish_time":1627727559303,"_cnpm_publish_time":1627727559303,"_cnpmcore_publish_time":"2021-12-16T13:37:15.562Z"},"5.0.0-alpha.2":{"name":"peek-readable","version":"5.0.0-alpha.2","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=12.20"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","type":"module","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.3","@types/node":"^16.3.2","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"readmeFilename":"README.md","gitHead":"4a0729f732a3448fd335a062fa9aa999a4770754","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0-alpha.2","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"shasum":"cff1ecd5d80a63396ba84758637718426166abbc","size":4316,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0-alpha.2.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0-alpha.2.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0-alpha.2_1627416212129_0.7711335294050194"},"_hasShrinkwrap":false,"publish_time":1627416212318,"_cnpm_publish_time":1627416212318,"_cnpmcore_publish_time":"2021-12-16T13:37:15.813Z"},"5.0.0-alpha.1":{"name":"peek-readable","version":"5.0.0-alpha.1","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=12.20"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","type":"module","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.3","@types/node":"^16.3.2","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"f4caae378800411d92d34384b3ef49b7ad4fc700","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0-alpha.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"shasum":"b44dce4590181aa9583288b5202819446e4ddb5b","size":4469,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0-alpha.1.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0-alpha.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0-alpha.1_1627157180978_0.08671725750489334"},"_hasShrinkwrap":false,"publish_time":1627157181129,"_cnpm_publish_time":1627157181129,"_cnpmcore_publish_time":"2021-12-16T13:37:16.042Z"},"5.0.0-alpha.0":{"name":"peek-readable","version":"5.0.0-alpha.0","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=12.20"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","exports":"./lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.3","@types/node":"^16.3.2","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"readmeFilename":"README.md","gitHead":"d33fadbc281b8aeb2dcf5b9e04af984d94cc493b","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@5.0.0-alpha.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"shasum":"b598affc8dcaa25779b2d80784646d89436de80a","size":4466,"noattachment":false,"key":"/peek-readable/-/peek-readable-5.0.0-alpha.0.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-5.0.0-alpha.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_5.0.0-alpha.0_1627155954872_0.23741297311560294"},"_hasShrinkwrap":false,"publish_time":1627155955012,"_cnpm_publish_time":1627155955012,"_cnpmcore_publish_time":"2021-12-16T13:37:16.297Z"},"4.0.0":{"name":"peek-readable","version":"4.0.0","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.3","@types/node":"^16.3.2","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.1","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"17483943e70ced1d5e775e893f87015993d8192a","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@4.0.0","_nodeVersion":"16.4.2","_npmVersion":"6.14.5","dist":{"shasum":"b024ef391c86136eba0ae9df3ff4f966a09e9a7e","size":4625,"noattachment":false,"key":"/peek-readable/-/peek-readable-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-4.0.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_4.0.0_1626458996470_0.10105819982216002"},"_hasShrinkwrap":false,"publish_time":1626458996591,"_cnpm_publish_time":1626458996591,"_cnpmcore_publish_time":"2021-12-16T13:37:16.568Z"},"3.1.4":{"name":"peek-readable","version":"3.1.4","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.3","@types/node":"^16.3.1","@typescript-eslint/eslint-plugin":"^4.28.2","@typescript-eslint/parser":"^4.28.2","add":"^2.0.6","chai":"^4.3.4","coveralls":"^3.1.1","del-cli":"^4.0.0","eslint":"^7.30.0","mocha":"^9.0.2","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^10.1.0","typescript":"^4.3.5"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"52441b036b1a1e7e608fbb6c2067d5dce0217bbd","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@3.1.4","_nodeVersion":"16.4.2","_npmVersion":"6.14.5","dist":{"shasum":"f5c3b41a4eeb63a1322c4131f0b5bac7105b892e","size":4571,"noattachment":false,"key":"/peek-readable/-/peek-readable-3.1.4.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-3.1.4.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_3.1.4_1625998334219_0.21161567253390756"},"_hasShrinkwrap":false,"publish_time":1625998334341,"_cnpm_publish_time":1625998334341,"_cnpmcore_publish_time":"2021-12-16T13:37:16.787Z"},"3.1.3":{"name":"peek-readable","version":"3.1.3","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.0","@types/node":"^14.14.20","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","add":"^2.0.6","chai":"^4.2.0","coveralls":"^3.1.0","del-cli":"^3.0.1","eslint":"^6.8.0","mocha":"^7.2.0","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^9.1.1","typescript":"^4.1.3"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"c12c28a214a88a68c827f7f89026e7a9b293ec6c","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@3.1.3","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"shasum":"932480d46cf6aa553c46c68566c4fb69a82cd2b1","size":4591,"noattachment":false,"key":"/peek-readable/-/peek-readable-3.1.3.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-3.1.3.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_3.1.3_1610391337193_0.8721253562874214"},"_hasShrinkwrap":false,"publish_time":1610391337330,"_cnpm_publish_time":1610391337330},"3.1.2":{"name":"peek-readable","version":"3.1.2","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.0","@types/node":"^14.14.20","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","add":"^2.0.6","chai":"^4.2.0","coveralls":"^3.1.0","del-cli":"^3.0.1","eslint":"^6.8.0","mocha":"^7.2.0","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^9.1.1","typescript":"^4.1.3"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"4f502d4cda66f9233f80a41b0cbfd35369c07f52","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@3.1.2","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"5edab75fa130e21ca290c444892faa0c208a78f0","size":4633,"noattachment":false,"key":"/peek-readable/-/peek-readable-3.1.2.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-3.1.2.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_3.1.2_1610302112237_0.25380295512148643"},"_hasShrinkwrap":false,"publish_time":1610302112404,"_cnpm_publish_time":1610302112404},"3.1.1":{"name":"peek-readable","version":"3.1.1","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^8.2.0","@types/node":"^14.14.19","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","add":"^2.0.6","chai":"^4.2.0","coveralls":"^3.1.0","del-cli":"^3.0.1","eslint":"^6.8.0","mocha":"^7.2.0","nyc":"^15.1.0","remark-cli":"^9.0.0","remark-preset-lint-recommended":"^5.0.0","ts-node":"^9.1.1","typescript":"^4.1.3"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"789077f14241dd7065ef6c55054e49d4be27058e","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@3.1.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"795c1429374f256e4b5ab6c584cecfd3a110024f","size":4656,"noattachment":false,"key":"/peek-readable/-/peek-readable-3.1.1.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-3.1.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"npm:borewit","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_3.1.1_1609689859258_0.1817134455920475"},"_hasShrinkwrap":false,"publish_time":1609689859401,"_cnpm_publish_time":1609689859401},"3.1.0":{"name":"peek-readable","version":"3.1.0","description":"Read and peek from a readable stream","author":{"name":"Borewit","url":"https://github.com/Borewit"},"scripts":{"clean":"del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map coverage .nyc_output","build":"npm run clean && npm run compile","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"npm run compile-src && yarn run compile-test","eslint":"eslint lib test --ext .ts --ignore-pattern *.d.ts","lint-md":"remark -u preset-lint-recommended .","lint":"npm run lint-md && npm run eslint","test":"mocha --require ts-node/register --require source-map-support/register --full-trace test/*.ts","test-coverage":"nyc npm run test","send-coveralls":"nyc report --reporter=text-lcov | coveralls","start":"npm run compile && npm run lint && npm run cover-test"},"engines":{"node":">=8"},"repository":{"type":"git","url":"git+https://github.com/Borewit/peek-readable.git"},"license":"MIT","main":"lib/index.js","typings":"lib/index.d.ts","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"devDependencies":{"@types/mocha":"^5.2.7","@types/node":"^13.1.0","@typescript-eslint/eslint-plugin":"^2.13.0","@typescript-eslint/parser":"^2.13.0","add":"^2.0.6","chai":"^4.2.0","coveralls":"^3.0.8","del-cli":"^3.0.0","eslint":"^6.8.0","mocha":"^7.0.0","nyc":"^15.0.0","remark-cli":"^7.0.1","remark-preset-lint-recommended":"^3.0.2","ts-node":"^8.5.2","typescript":"^3.7.2","yarn":"^1.21.1"},"keywords":["readable","buffer","stream","read"],"nyc":{"check-coverage":true,"extension":[".ts"],"sourceMap":true,"instrument":true,"reporter":["lcov","text"],"report-dir":"coverage"},"gitHead":"f4c120e2531da30360704cd83ee1177dc549fa2d","homepage":"https://github.com/Borewit/peek-readable#readme","_id":"peek-readable@3.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"250b08b7de09db8573d7fd8ea475215bbff14348","size":4561,"noattachment":false,"key":"/peek-readable/-/peek-readable-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/peek-readable/download/peek-readable-3.1.0.tgz"},"maintainers":[{"name":"npm:borewit","email":""}],"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peek-readable_3.1.0_1578324846872_0.4263444948880617"},"_hasShrinkwrap":false,"publish_time":1578324847003,"_cnpm_publish_time":1578324847003}},"readme":"![Node.js CI](https://github.com/Borewit/peek-readable/workflows/Node.js%20CI/badge.svg)\n[![NPM version](https://badge.fury.io/js/peek-readable.svg)](https://npmjs.org/package/peek-readable)\n[![npm downloads](http://img.shields.io/npm/dm/peek-readable.svg)](https://npmcharts.com/compare/peek-readable?start=600&interval=30)\n[![Coverage Status](https://coveralls.io/repos/github/Borewit/peek-readable/badge.svg?branch=master)](https://coveralls.io/github/Borewit/peek-readable?branch=master)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d4b511481b3a4634b6ca5c0724407eb9)](https://www.codacy.com/gh/Borewit/peek-readable/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Borewit/peek-readable&amp;utm_campaign=Badge_Grade)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/Borewit/peek-readable.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Borewit/peek-readable/alerts/)\n[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/Borewit/peek-readable.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Borewit/peek-readable/context:javascript)\n[![Known Vulnerabilities](https://snyk.io/test/github/Borewit/peek-readable/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Borewit/peek-readable?targetFile=package.json)\n\n# peek-readable\n\nA promise based asynchronous stream reader, which makes reading from a stream easy.\n\nAllows to read and peek from a [Readable Stream](https://nodejs.org/api/stream.html#stream_readable_streams) \n\nNote that [peek-readable](https://github.com/Borewit/peek-readable) was formally released as [then-read-stream](https://github.com/Borewit/peek-readable).\n\n## Usage\n\n### Installation\n\n```shell script\nnpm install --save peek-readable\n```\n\nThe `peek-readable` contains one class: `StreamReader`, which reads from a [stream.Readable](https://nodejs.org/api/stream.html#stream_class_stream_readable).\n\n### Compatibility\n\nModule: version 5 migrated from [CommonJS](https://en.wikipedia.org/wiki/CommonJS) to [pure ECMAScript Module (ESM)](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\nJavaScript is compliant with [ECMAScript 2019 (ES10)](https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_%E2%80%93_ECMAScript_2019).\nRequires Node.js ≥ 14.16 engine.\n\n## Examples\n\nIn the following example we read the first 16 bytes from a stream and store them in our buffer.\nSource code of examples can be found [here](test/examples.ts).\n\n```js\nimport fs from 'node:fs';\nimport { StreamReader } from 'peek-readable';\n\n(async () => {\n  const readable = fs.createReadStream('JPEG_example_JPG_RIP_001.jpg');\n  const streamReader = new StreamReader(readable);\n  const uint8Array = new Uint8Array(16);\n  const bytesRead = await streamReader.read(uint8Array, 0, 16);;\n  // buffer contains 16 bytes, if the end-of-stream has not been reached\n})();\n```\n\nEnd-of-stream detection:\n```js\n(async () => {\n\n  const fileReadStream = fs.createReadStream('JPEG_example_JPG_RIP_001.jpg');\n  const streamReader = new StreamReader(fileReadStream);\n  const buffer = Buffer.alloc(16); // or use: new Uint8Array(16);\n\n  try {\n    await streamReader.read(buffer, 0, 16);\n    // buffer contains 16 bytes, if the end-of-stream has not been reached\n  } catch(error) {\n    if (error instanceof EndOfStreamError) {\n      console.log('End-of-stream reached');\n    }\n  }\n})();\n```\n\nWith peek you can read ahead:\n```js\nimport fs from 'node:fs';\nimport { StreamReader } from 'peek-readable';\n\nconst fileReadStream = fs.createReadStream('JPEG_example_JPG_RIP_001.jpg');\nconst streamReader = new StreamReader(fileReadStream);\nconst buffer = Buffer.alloc(20);\n\n(async () => {\n  let bytesRead = await streamReader.peek(buffer, 0, 3);\n  if (bytesRead === 3 && buffer[0] === 0xFF && buffer[1] === 0xD8 && buffer[2] === 0xFF) {\n    console.log('This is a JPEG file');\n  } else {\n    throw Error('Expected a JPEG file');\n  }\n\n  bytesRead = await streamReader.read(buffer, 0, 20); // Read JPEG header\n  if (bytesRead === 20) {\n    console.log('Got the JPEG header');\n  } else {\n    throw Error('Failed to read JPEG header');\n  }\n})();\n```\n","_attachments":{},"homepage":"https://github.com/Borewit/peek-readable#readme","bugs":{"url":"https://github.com/Borewit/peek-readable/issues"},"license":"MIT"}