0.0.3 • Published 4 years ago

@akord/file-viewer v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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