{"library":"web-stream-tools","type":"library","category":null,"description":"Web Stream Tools (available as `@openpgp/web-stream-tools` on npm) is a JavaScript utility library designed to simplify working with WhatWG Streams. It provides a comprehensive set of functions for common stream operations, including reading to completion (`readToEnd`), concatenating streams (`concat`), slicing parts of streams (`slice`), cloning streams (`clone`), and facilitating conversion between Node.js streams and Web Streams (`webToNode`, `nodeToWeb`). The library also features advanced capabilities for transforming stream data, either directly (`transform`) or in chunks with backpressure handling (`transformPair`), and for parsing structured data from streams (`parse`) with functions like `readByte`, `readBytes`, and `readLine`. The current stable version is 0.3.0. Developed by the OpenPGP.js team, it maintains an active development status, with updates generally released as needed. A key differentiator is its explicit focus on the WhatWG Streams API, providing a consistent interface across browser and modern Node.js environments, streamlining complex stream manipulations that often involve manual reader/writer management.","language":"javascript","status":"active","version":"0.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install web-stream-tools","imports":["import * as stream from '@openpgp/web-stream-tools';","import { transform } from '@openpgp/web-stream-tools';","import { readToEnd } from '@openpgp/web-stream-tools';"]},{"cmd":"yarn add web-stream-tools","imports":[]},{"cmd":"pnpm add web-stream-tools","imports":[]}],"homepage":null,"github":"https://github.com/openpgpjs/streams","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/web-stream-tools","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/web-stream-tools/compatibility"}}