{"library":"path-source","type":"library","category":null,"description":"Read files in Node.js or fetch URLs in browsers as standard WhatWG readable streams. Version 0.1.3 provides a unified API for streaming file I/O and HTTP responses. Designed for incremental data processing, it returns a ReadableStream reader with `read()` and `cancel()` methods. In Node, it wraps file streams; in browsers, it uses the Fetch API with streaming support when available, falling back to XMLHttpRequest. Lightweight and zero-dependency for the core feature, but requires `array-source` in older browsers. Part of a family of stream sources by Mike Bostock.","language":"javascript","status":"active","version":"0.1.3","tags":["javascript","fetch","stream","reader"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install path-source","imports":["import path from 'path-source'"]},{"cmd":"yarn add path-source","imports":[]},{"cmd":"pnpm add path-source","imports":[]}],"homepage":"https://github.com/mbostock/path-source","github":"ssh://git@github.com/mbostock/path-source","docs":null,"changelog":null,"pypi":null,"npm":"path-source","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}