{"_id":"jquery-viewer","_rev":"6-bf139ed9253260e47c01fcb87c884bb0","name":"jquery-viewer","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0-alpha":{"name":"jquery-viewer","description":"A jQuery plugin wrapper for Viewer.js.","version":"1.0.0-alpha","main":"dist/jquery-viewer.common.js","module":"dist/jquery-viewer.esm.js","unpkg":"dist/jquery-viewer.js","repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-viewer.git"},"homepage":"https://fengyuanchen.github.io/jquery-viewer","license":"MIT","author":{"name":"Chen Fengyuan","url":"http://chenfengyuan.com"},"files":["src","dist"],"keywords":["image","viewer","viewer.js","viewing","jquery","jquery-plugin","html","css","javascript","front-end","web"],"scripts":{"build":"rollup -c","clear":"del-cli dist","commitmsg":"npm run lint && commitlint -e","compress":"uglifyjs dist/jquery-viewer.js -o dist/jquery-viewer.min.js -c -m --comments /^!/","lint":"eslint src/js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","start":"rollup -c -m -w","test":"karma start test/karma.conf.js"},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-angular":"^6.1.3","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","chai":"^4.1.2","del-cli":"^1.1.0","eslint":"^4.18.2","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.9.0","husky":"^0.14.3","jquery":"^3.3.1","karma":"^2.0.0","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-rollup-preprocessor":"^5.1.1","mocha":"^5.0.1","puppeteer":"^1.1.1","rollup":"^0.56.5","rollup-plugin-alias":"^1.4.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.0.0","rollup-plugin-node-resolve":"^3.0.3","rollup-watch":"^4.3.1","uglify-js":"^3.3.13","viewerjs":"^1.0.0-rc"},"peerDependencies":{"viewerjs":">= 1.0.0","jquery":">= 1.9.1"},"gitHead":"ff24aacae50e12abebe760d187686d1d18efb268","bugs":{"url":"https://github.com/fengyuanchen/jquery-viewer/issues"},"_id":"jquery-viewer@1.0.0-alpha","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"fengyuanchen","email":"chenfengyuan@outlook.com"},"dist":{"integrity":"sha512-+uC2GKUi8rAFRkUvQg4wyZBsAv3Atvo8mshK01tYKS2+me/BAXHRGeT6r7BURukUhSKWs9jjab5/eejaKbb6lg==","shasum":"33bf4d91bbb3d5d6ec379a916506cd9ba85e34c4","tarball":"https://registry.npmjs.org/jquery-viewer/-/jquery-viewer-1.0.0-alpha.tgz","fileCount":9,"unpackedSize":13946,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHTJMxnV1E3VDc1a9zinvkSE3WUeSdfe95h6sA9iIgNkAiEAlRWiyWtS9Me4YIsl1WSsucUeuc50+e2SKDXEgbusUE8="}]},"maintainers":[{"name":"fengyuanchen","email":"chenfengyuan@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-viewer_1.0.0-alpha_1520690273759_0.24692592943607283"},"_hasShrinkwrap":false},"1.0.0-beta":{"name":"jquery-viewer","description":"A jQuery plugin wrapper for Viewer.js.","version":"1.0.0-beta","main":"dist/jquery-viewer.common.js","module":"dist/jquery-viewer.esm.js","unpkg":"dist/jquery-viewer.js","repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-viewer.git"},"homepage":"https://fengyuanchen.github.io/jquery-viewer","license":"MIT","author":{"name":"Chen Fengyuan","url":"http://chenfengyuan.com"},"files":["src","dist"],"keywords":["image","viewer","viewer.js","viewing","jquery","jquery-plugin","html","css","javascript","front-end","web"],"scripts":{"build":"rollup -c","clear":"del-cli dist","commitmsg":"npm run lint && commitlint -e","compress":"uglifyjs dist/jquery-viewer.js -o dist/jquery-viewer.min.js -c -m --comments /^!/","lint":"eslint src/js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","start":"rollup -c -m -w","test":"karma start test/karma.conf.js"},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-angular":"^6.1.3","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","chai":"^4.1.2","del-cli":"^1.1.0","eslint":"^4.18.2","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.9.0","husky":"^0.14.3","jquery":"^3.3.1","karma":"^2.0.0","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-rollup-preprocessor":"^5.1.1","mocha":"^5.0.1","puppeteer":"^1.1.1","rollup":"^0.56.5","rollup-plugin-alias":"^1.4.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.1.0","rollup-plugin-node-resolve":"^3.0.3","rollup-watch":"^4.3.1","uglify-js":"^3.3.15","viewerjs":"^1.0.0-rc.1"},"peerDependencies":{"viewerjs":">= 1.0.0","jquery":">= 1.9.1"},"gitHead":"9aceb3f4e7fd1bfb718a3f70265b12fbb1d8be50","bugs":{"url":"https://github.com/fengyuanchen/jquery-viewer/issues"},"_id":"jquery-viewer@1.0.0-beta","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"dist":{"integrity":"sha512-/D0XczqHXt6aM1xwv5fpzRQlNQk0zF8LjNBtzoTaG21cLDxH2SHfwhEf+p52iWh0lUmhnz3ZDbYyYWJMsN19hw==","shasum":"44a1c4196644d2ea2b1fc32bcdf6562c20c9b3dd","tarball":"https://registry.npmjs.org/jquery-viewer/-/jquery-viewer-1.0.0-beta.tgz","fileCount":9,"unpackedSize":13971,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDhWn6EWs+3OZxXvdudb8FNj6n/9ItS9+GPEdd4G3hzAIgSV2Dqh8z6o/pKFB10sAghq2Vc0FsD5+mjG/dolSW6J8="}]},"maintainers":[{"email":"chenfengyuan@outlook.com","name":"chenfengyuan"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-viewer_1.0.0-beta_1521122221386_0.48309573833548103"},"_hasShrinkwrap":false},"1.0.0":{"name":"jquery-viewer","description":"A jQuery plugin wrapper for Viewer.js.","version":"1.0.0","main":"dist/jquery-viewer.common.js","module":"dist/jquery-viewer.esm.js","unpkg":"dist/jquery-viewer.js","repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-viewer.git"},"homepage":"https://fengyuanchen.github.io/jquery-viewer","license":"MIT","author":{"name":"Chen Fengyuan","url":"http://chenfengyuan.com"},"files":["src","dist"],"keywords":["image","viewer","viewer.js","viewing","jquery","jquery-plugin","html","css","javascript","front-end","web"],"scripts":{"build":"rollup -c","clear":"del-cli dist","commitmsg":"npm run lint && commitlint -e","compress":"uglifyjs dist/jquery-viewer.js -o dist/jquery-viewer.min.js -c -m --comments /^!/","lint":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","start":"rollup -c -m -w","test":"karma start test/karma.conf.js"},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-angular":"^6.1.3","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","chai":"^4.1.2","del-cli":"^1.1.0","eslint":"^4.19.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.10.0","husky":"^0.14.3","jquery":"^3.3.1","karma":"^2.0.0","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-rollup-preprocessor":"^5.1.1","mocha":"^5.0.5","puppeteer":"^1.2.0","rollup":"^0.57.1","rollup-plugin-alias":"^1.4.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.1.0","rollup-plugin-node-resolve":"^3.3.0","rollup-watch":"^4.3.1","uglify-js":"^3.3.17","viewerjs":"^1.0.0"},"peerDependencies":{"viewerjs":">= 1.0.0","jquery":">= 1.9.1"},"gitHead":"23dcfd1570b6008506e1d86397f4095490439ee8","bugs":{"url":"https://github.com/fengyuanchen/jquery-viewer/issues"},"_id":"jquery-viewer@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"dist":{"integrity":"sha512-j1f7AKNU+wjywS8CwtHzDymyoroUznoXnrRp87WIRVuzZzMoFtJCrj54F/0BAi2DIEkDHx/1EZl9N725M6LiIA==","shasum":"84dc26d39b4499d8f21fa146d35bd52f5f813f11","tarball":"https://registry.npmjs.org/jquery-viewer/-/jquery-viewer-1.0.0.tgz","fileCount":9,"unpackedSize":14134,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChBOiPdcxeYTs6iFuX8ITRH0qD0r3J2Tnn1UdvW09ACgIgfoIDqfw7y0+2RYkKgupm4QAoUojvXzDBaY2noQxVBHQ="}]},"maintainers":[{"email":"chenfengyuan@outlook.com","name":"chenfengyuan"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-viewer_1.0.0_1522562829587_0.27269003715149687"},"_hasShrinkwrap":false},"1.0.1":{"name":"jquery-viewer","description":"A jQuery plugin wrapper for Viewer.js.","version":"1.0.1","main":"dist/jquery-viewer.common.js","module":"dist/jquery-viewer.esm.js","browser":"dist/jquery-viewer.js","scripts":{"build":"rollup -c","clear":"del-cli dist","codecov":"cat coverage/lcov.info | codecov","compress":"uglifyjs dist/jquery-viewer.js -o dist/jquery-viewer.min.js -c -m --comments /^!/","lint":"eslint src test *.js --fix","release":"npm run clear && npm run lint && npm run build && npm run compress && npm test","start":"rollup -c -m -w","test":"karma start"},"repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-viewer.git"},"keywords":["image","viewer","jquery","jquery-plugin"],"author":{"name":"Chen Fengyuan","url":"https://chenfengyuan.com/"},"license":"MIT","bugs":{"url":"https://github.com/fengyuanchen/jquery-viewer/issues"},"homepage":"https://fengyuanchen.github.io/jquery-viewer","devDependencies":{"@babel/core":"^7.7.5","@babel/preset-env":"^7.7.6","@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","babel-plugin-istanbul":"^5.2.0","chai":"^4.2.0","codecov":"^3.6.1","create-banner":"^1.0.0","viewerjs":"^1.4.0","del-cli":"^3.0.0","eslint":"^6.7.2","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.19.1","husky":"^3.1.0","jquery":"^3.4.1","lint-staged":"^9.5.0","karma":"^4.4.1","karma-chai":"^0.1.0","karma-chrome-launcher":"^3.1.0","karma-coverage-istanbul-reporter":"^2.1.1","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-rollup-preprocessor":"^7.0.2","mocha":"^6.2.2","puppeteer":"^2.0.0","rollup":"^1.27.12","rollup-plugin-alias":"^2.2.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","uglify-js":"^3.7.2"},"peerDependencies":{"viewerjs":">=1.5.0","jquery":">=1.9.1"},"browserslist":["last 2 versions","> 1%","not ie <= 8"],"commitlint":{"extends":["@commitlint/config-conventional"]},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"{src,test}/**/*.js|*.conf*.js":["eslint --fix","git add"]},"gitHead":"043b1f8674ebce574a0493787261dd98536c9c22","_id":"jquery-viewer@1.0.1","_nodeVersion":"10.9.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-d7qd/9zKCcsxgKDDt9nC2Jdbr2SdXcJkQVzQDxj/H7ZkXzS+scxt2KxGWQlsBthiRmvv9aCPt7kPnGsFA2ds/Q==","shasum":"e85ca0fbfc09aa4670b87ff82a9a59b042b02f55","tarball":"https://registry.npmjs.org/jquery-viewer/-/jquery-viewer-1.0.1.tgz","fileCount":9,"unpackedSize":14891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9LwPCRA9TVsSAnZWagAAOsUP/3MrmPYXOyrOSeQpnxKk\nCSyZ9mHjwNBmO2Bpg4dpoGgHK6sVGg0weGEVFFERHhBvbUsGrfrKQOjUT96y\nvfHnYCJhrCFqKmQo/M3UKgnp1XP+fwpDmgEE6SpW//tkmXEqYV0KedL9pr+z\nEpv7Zh/wV59JnkI37DmIMsh7LaFbJi4XeictLuQm/50wlitG164h0Q9NIl+o\nPGfw5/hUSx8kdxVT1gYSLH8CXVRjsVE0UktVSSr+uC5quZrBdMt+wjc9UPuK\n6qaYtbvo/OWp68WdzbcgtOU161KsDdnm0psykZrFDMuR8yFBxXt35ZoB0qO7\naKM4QurtmKfVkMP/T8ZsEe/+35k5vOphkJiLdrh0WxfglrMe7KeYiPI2uY51\ndL1VEuLl/zfQF4A2+KHtGksY3Rp1+vFUBMg1mFrFYDLkQLLm4rpLbxHMNTMm\nsyukrWL+dIe6nXJzrHITQd4m/tQNd+0Gba92JccjjSxjri/R28TaWxB13dzd\nBKKr0GaxLyNl2XZiUCK/Wi4fnCXPCrGXlf7FcRFFb69+i6AUoiXDItfhpJkS\n4W0MXyo/SFVablxa0OZnKjyMNRhUFh1uIPI564n12asJUFOF16Q3uFWtLjP4\nLT6NNDy14Sz3YQuxBGUJVw5Ibx8Bn0qa7xN8gsWp+6R6nHPfhmLrdiwi9juA\nvZ1Q\r\n=i3nB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuXKK/nvudTtB9aAG/KQ7ZmOTeHpJXKL+9BvT6lBIsrAIgdr0M/0caEWPfIaD3XNEcN3d19IZ6C/bl8m6WpBceDHg="}]},"maintainers":[{"email":"chenfengyuan@outlook.com","name":"chenfengyuan"}],"_npmUser":{"name":"chenfengyuan","email":"chenfengyuan@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-viewer_1.0.1_1576320014970_0.7098232505377726"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-10T13:57:53.758Z","1.0.0-alpha":"2018-03-10T13:57:53.824Z","modified":"2022-05-06T17:45:28.473Z","1.0.0-beta":"2018-03-15T13:57:01.504Z","1.0.0":"2018-04-01T06:07:09.701Z","1.0.1":"2019-12-14T10:40:15.095Z"},"maintainers":[{"email":"chenfengyuan@outlook.com","name":"chenfengyuan"}],"description":"A jQuery plugin wrapper for Viewer.js.","homepage":"https://fengyuanchen.github.io/jquery-viewer","keywords":["image","viewer","jquery","jquery-plugin"],"repository":{"type":"git","url":"git+https://github.com/fengyuanchen/jquery-viewer.git"},"author":{"name":"Chen Fengyuan","url":"https://chenfengyuan.com/"},"bugs":{"url":"https://github.com/fengyuanchen/jquery-viewer/issues"},"license":"MIT","readme":"# jquery-viewer\n\n[![Build Status](https://img.shields.io/travis/fengyuanchen/jquery-viewer.svg)](https://travis-ci.org/fengyuanchen/jquery-viewer) [![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/jquery-viewer.svg)](https://codecov.io/gh/fengyuanchen/jquery-viewer) [![Downloads](https://img.shields.io/npm/dm/jquery-viewer.svg)](https://www.npmjs.com/package/jquery-viewer) [![Version](https://img.shields.io/npm/v/jquery-viewer.svg)](https://www.npmjs.com/package/jquery-viewer)\n\n> A jQuery plugin wrapper for [Viewer.js](https://github.com/fengyuanchen/viewerjs).\n\n- [Demo](https://fengyuanchen.github.io/jquery-viewer)\n\n## Main\n\n```text\ndist/\n├── jquery-viewer.js        (UMD)\n├── jquery-viewer.min.js    (UMD, compressed)\n├── jquery-viewer.common.js (CommonJS, default)\n└── jquery-viewer.esm.js    (ES Module)\n```\n\n## Getting started\n\n### Installation\n\n```shell\nnpm install jquery-viewer jquery viewerjs\n```\n\nInclude files:\n\n```html\n<script src=\"/path/to/jquery.js\"></script><!-- jQuery is required -->\n<script src=\"/path/to/viewer.js\"></script><!-- Viewer.js is required -->\n<link  href=\"/path/to/viewer.css\" rel=\"stylesheet\">\n<script src=\"/path/to/jquery-viewer.js\"></script>\n```\n\n### Usage\n\nInitialize with `$.fn.viewer` method.\n\n```html\n<!-- a block container is required -->\n<div>\n  <img id=\"image\" src=\"picture.jpg\" alt=\"Picture\">\n</div>\n\n<div>\n  <ul id=\"images\">\n    <li><img src=\"picture-1.jpg\" alt=\"Picture 1\"></li>\n    <li><img src=\"picture-2.jpg\" alt=\"Picture 2\"></li>\n    <li><img src=\"picture-3.jpg\" alt=\"Picture 3\"></li>\n  </ul>\n</div>\n```\n\n```js\nvar $image = $('#image');\n\n$image.viewer({\n  inline: true,\n  viewed: function() {\n    $image.viewer('zoomTo', 1);\n  }\n});\n\n// Get the Viewer.js instance after initialized\nvar viewer = $image.data('viewer');\n\n// View a list of images\n$('#images').viewer();\n```\n\n## Options\n\nSee the available [options](https://github.com/fengyuanchen/viewerjs#options) of Viewer.js.\n\n```js\n$().viewer(options);\n```\n\n## Methods\n\nSee the available [methods](https://github.com/fengyuanchen/viewerjs#methods) of Viewer.js.\n\n```js\n$().viewer('method', argument1, , argument2, ..., argumentN);\n```\n\n## Events\n\nSee the available [events](https://github.com/fengyuanchen/viewerjs#events) of Viewer.js.\n\n```js\n$().on('event', handler);\n```\n\n## No conflict\n\nIf you have to use other plugin with the same namespace, just call the `$.fn.viewer.noConflict` method to revert to it.\n\n```html\n<script src=\"other-plugin.js\"></script>\n<script src=\"jquery-viewer.js\"></script>\n<script>\n  $.fn.viewer.noConflict();\n  // Code that uses other plugin's \"$().viewer\" can follow here.\n</script>\n```\n\n## Browser support\n\nIt is the same as the [browser support of Viewer.js](https://github.com/fengyuanchen/viewerjs#browser-support). As a jQuery plugin, you also need to see the [jQuery Browser Support](https://jquery.com/browser-support/).\n\n## Versioning\n\nMaintained under the [Semantic Versioning guidelines](https://semver.org/).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)\n","readmeFilename":"README.md"}