From 9f5b9339b8d5ada9ffbd61fecb36f5be4f0cd54e Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 20 Feb 2018 18:36:03 +0000 Subject: [PATCH] docs: Add browser example for ReadableStreams feat: Allows for byte offsets when using ipfs.files.cat and friends to request slices of files --- examples/README.md | 1 + examples/browser-readablestream/README.md | 16 +++ examples/browser-readablestream/index.html | 62 +++++++++ examples/browser-readablestream/index.js | 131 ++++++++++++++++++ examples/browser-readablestream/package.json | 22 +++ .../browser-readablestream/webpack.config.js | 29 ++++ package.json | 2 + src/core/components/files.js | 29 +++- 8 files changed, 286 insertions(+), 6 deletions(-) create mode 100644 examples/browser-readablestream/README.md create mode 100644 examples/browser-readablestream/index.html create mode 100644 examples/browser-readablestream/index.js create mode 100644 examples/browser-readablestream/package.json create mode 100644 examples/browser-readablestream/webpack.config.js diff --git a/examples/README.md b/examples/README.md index cbab050194..002747d5c6 100644 --- a/examples/README.md +++ b/examples/README.md @@ -21,6 +21,7 @@ Let us know if you find any issue or if you want to contribute and add a new tut - [js-ipfs in the browser with a `