fast-viewerjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

fast-viewerjs

npm install fast-viewerjs
import fastViewer from 'fast-viewerjs'
import 'fast-viewerjs/dist/fast-viewerjs.css'

const viewer = fastViewer([{
    src: 'https://i.loli.net/2021/01/17/6xTYERKO3ubfJXi.jpg'
}], {
    hide: () => {
        viewer.destroy();
    },
    errImg: 'https://i.loli.net/2021/01/17/bOHRKZ5lJWfd8i2.jpg'
});
viewer.show();

Readme

Keywords

Package Sidebar

Install

npm i fast-viewerjs

Weekly Downloads

2

Version

0.0.9

License

MIT

Unpacked Size

241 kB

Total Files

16

Last publish

Collaborators

  • codwo