@akord/file-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @akord/file-viewer

Weekly Downloads

39

Version

0.0.3

License

MIT

Unpacked Size

1.65 MB

Total Files

53

Last publish

Collaborators

  • akord-service
  • kgracki
  • katala
  • wkolod
  • jarrvis