# image-perview

> image light box, image list viewer.

Latest version **1.2.8** (published 2021-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install image-perview
pnpm add image-perview
yarn add image-perview
bun add image-perview
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.8 |
| Published | 2021-07-14 |
| First published | 2021-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 166.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pork |
| Maintainers | porkio |
| Keywords | lightbox, image-viewer, image-perview, image-preview, imgPreview |

## Links

- npm: https://www.npmjs.com/package/image-perview
- Repository: https://github.com/porkio/image-perview
- Homepage: https://github.com/porkio/image-perview#readme
- Issues: https://github.com/porkio/image-perview/issues
- npm.io page: https://npm.io/package/image-perview

## Dependencies (1)

- [swiper](https://npm.io/package/swiper.md) ^6.7.5

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 1.2.8 (latest) — 2021-07-14
- 1.2.6 — 2021-07-14
- 1.2.5 — 2021-07-06
- 1.2.4 — 2021-07-06
- 1.2.3 — 2021-07-06
- 1.2.2 — 2021-07-05
- 1.2.1 — 2021-07-05
- 1.2.0 — 2021-07-05
- 1.1.2 — 2021-07-05
- 1.1.1 — 2021-07-05
- 1.1.0 — 2021-07-05
- 1.0.1 — 2021-07-05
- 1.0.0 — 2021-07-04

## README

# image-perview(图片查看器)

### Introduction

基于 Swiper 的极简 web 端（多端兼容）图片预览工具

### Installation

```
npm install image-perview --save
```

### Usage

```js
import ImagePerview from 'image-perview'

const viewer = new ImagePerview({
  current: 'current.jpg', // 当前图片URL
  list: ['current.jpg', 'other.jpg'], // 所有需要预览的图片列表
  allowDownload: false, // 是否允许下载或保存图片
})
```

### Use in static pages

```js
<!-- Load CSS -->
<link rel="stylesheet" href="dist/swiper-bundle.min.css">
<!-- Load JS -->
<script src="dist/swiper-bundle.min.js"></script>
<script src="dist/image-perview.js"></script>

const viewer = new ImagePerview({
  current: 'current.jpg', // 当前图片URL
  list: ['current.jpg', 'other.jpg'], // 所有需要预览的图片列表
  allowDownload: false, // 是否允许下载或保存图片
})
```

### LICENSE

MIT@[Pork](https://github.com/porkio)

---
_Source: https://npm.io/package/image-perview · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
