New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

previewimg

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

previewimg

## Description Provide preview function for image like QQ and WeChat, a group of pictures can be sliding and preview; Support zoom in, zoom out, move, the maximum magnification of 4; double-click to 2 times zoom

latest
Source
npmnpm
Version
1.0.38
Version published
Weekly downloads
1
-97.44%
Maintainers
1
Weekly downloads
 
Created
Source

Image preview

Description

Provide preview function for image like QQ and WeChat, a group of pictures can be sliding and preview; Support zoom in, zoom out, move, the maximum magnification of 4; double-click to 2 times zoom

Dependencies

+ hammerjs

API

show(srcs,[index]);

srcs: A single picture address or multiple address arrays index: The current display of the picture of the subscript, default zero

hide

Hide the panel

安装使用

npm install previewimg --save-dev
var preViewImg = require('previewimg');
preViewImg.show(['....jpg','...jpg'],0);
preViewImg.hide();

FAQs

Package last updated on 13 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts