# imgs-preview-native

> a images-preview plugin using native-js

Latest version **1.0.3** (published 2018-06-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install imgs-preview-native
pnpm add imgs-preview-native
yarn add imgs-preview-native
bun add imgs-preview-native
```

## 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.0.3 |
| Published | 2018-06-15 |
| First published | 2018-06-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 40.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | famous |
| Maintainers | famoushappy |
| Keywords | img, image, imgs, images, preview, vue, react, angular |

## Links

- npm: https://www.npmjs.com/package/imgs-preview-native
- Repository: https://github.com/famoushappy/imgs-preview-native
- Homepage: https://github.com/famoushappy/imgs-preview-native#readme
- Issues: https://github.com/famoushappy/imgs-preview-native/issues
- npm.io page: https://npm.io/package/imgs-preview-native

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-06-15
- 1.0.2 — 2018-06-15
- 1.0.1 — 2018-06-14
- 1.0.0 — 2018-06-14

## README

# imgs-preview-native

a images-preview plugin using native-js


## Github

https://github.com/famoushappy/imgs-preview-native.git


## Install

npm install imgs-preview-native -S


## Usage

组件化开发时，在组件中引入

import ImgsPreview from 'imgs-preview-native';

或ES5写法：   var ImgsPreview = require('imgs-preview-native');

或者直接script标签引入js

<script src="dist/imgs-preview.min.js"></script>

当页面加载完成时，进行实例化。

实例化时传入需要预览的所有图片的父元素;

可传class（如： ".imgsParent"）、id（如： "#imgsParent"）、

或直接传入父元素（如： document.querySelector(".imgsParent")）。

var imgsPreview = new ImgsPreview(parent element);


## Notice

注：一定要保证在实例化前，当前需要预览的所有图片元素已经加载，可理解为DOMContentLoaded。

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