@akord/file-viewer
v0.0.3
Published
Web component (framework agnostic) for in browser file viewing
Downloads
7
Keywords
Readme
akord-file-viewer
Web component (framework agnostic) for in browser file viewing.
File data can be passed to component as eagerly loaded bytes in memory (for ease of use with small files) or as stream.
Streaming data to component is done with src attribute (url to a file). Data can be processed before viewing e.g. decrypted using defined processor.
Installing
Can be used as a web component:
- with npm/yarn:
npm i akord-file-viewer --save
See https://stenciljs.com/docs/overview for integrations with frameworks
- or if outside of npm you can pop this script tag:
<script async defer src='TODO'></script>
into your index.html