{"_id":"@deveodk/vue-online","_rev":"3-73ae1603175ab7ead4665150aeb5ace3","name":"@deveodk/vue-online","description":"An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@deveodk/vue-online","version":"1.0.0","description":"An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.","author":{"name":"Jason Kelly","email":"jk@deveo.dk"},"main":"dist/@deveodk/vue-online.common.js","module":"dist/@deveodk/vue-online.esm.js","browser":"dist/@deveodk/vue-online.js","unpkg":"dist/@deveodk/vue-online.js","style":"dist/@deveodk/vue-online.css","files":["dist","src"],"scripts":{"clean":"rimraf dist","build":"yon run build:common && yon run build:browser && yon run build:browser:min","build:common":"cross-env NODE_ENV=common webpack --config build/webpack.config.common.js --progress --hide-modules","build:browser:base":"webpack --config build/webpack.config.browser.js --progress --hide-modules","build:browser":"cross-env NODE_ENV=browser yon run build:browser:base","build:browser:min":"cross-env NODE_ENV=production yon run build:browser:base -- -p","build:dll":"webpack --progress --config build/webpack.config.dll.js","lint":"yon run lint:js && yon run lint:css","lint:js":"eslint --ext js --ext jsx --ext vue src test/**/*.spec.js test/*.js build","lint:js:fix":"yon run lint:js -- --fix","lint:css":"stylelint src/**/*.{vue,css}","lint:staged":"lint-staged","pretest":"yon run lint","test":"cross-env BABEL_ENV=test karma start test/karma.conf.js --single-run","dev":"webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js --open","dev:coverage":"cross-env BABEL_ENV=test karma start test/karma.conf.js","prepublish":"yon run build"},"lint-staged":{"*.{vue,jsx,js}":["eslint --fix"],"*.{vue,css}":["stylefmt","stylelint"]},"pre-commit":"lint:staged","devDependencies":{"null-loader":"^0.1.1","add-asset-html-webpack-plugin":"^2.0.0","babel-core":"^6.24.0","babel-eslint":"^7.2.0","babel-helper-vue-jsx-merge-props":"^2.0.0","babel-loader":"^7.0.0","babel-plugin-istanbul":"^4.1.0","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-runtime":"^6.23.0","babel-plugin-transform-vue-jsx":"^3.4.0","babel-preset-env":"^1.4.0","chai":"^3.5.0","chai-dom":"^1.4.0","cross-env":"^4.0.0","css-loader":"^0.28.0","eslint":"^3.19.0","eslint-config-vue":"^2.0.0","eslint-plugin-vue":"^2.0.0","extract-text-webpack-plugin":"^2.1.0","html-webpack-plugin":"^2.28.0","karma":"^1.7.0","karma-chai-dom":"^1.1.0","karma-chrome-launcher":"^2.1.0","karma-coverage":"^1.1.0","karma-mocha":"^1.3.0","karma-sinon-chai":"^1.3.0","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"^0.0.31","karma-webpack":"^2.0.0","lint-staged":"^3.4.0","mocha":"^3.3.0","mocha-css":"^1.0.1","postcss":"^6.0.0","postcss-cssnext":"^2.10.0","pre-commit":"^1.2.0","rimraf":"^2.6.0","sinon":"2.2.0","sinon-chai":"^2.10.0","style-loader":"^0.17.0","stylefmt":"^5.3.0","stylelint":"^7.10.0","stylelint-config-standard":"^16.0.0","stylelint-processor-html":"^1.0.0","uppercamelcase":"^3.0.0","vue":"^2.3.0","vue-loader":"^12.0.0","vue-template-compiler":"^2.3.0","webpack":"^2.5.0","webpack-bundle-analyzer":"^2.4.0","webpack-dashboard":"^0.4.0","webpack-dev-server":"^2.4.0","webpack-merge":"^4.0.0","yarn-or-npm":"^2.0.0"},"peerDependencies":{"vue":"^2.3.0"},"dllPlugin":{"name":"vuePluginTemplateDeps","include":["mocha/mocha.js","style-loader!css-loader!mocha-css","html-entities","vue/dist/vue.js","chai","core-js/library","url","sockjs-client","vue-style-loader/lib/addStylesClient.js","events","ansi-html","style-loader/addStyles.js"]},"repository":{"type":"git","url":"git+https://github.com/deveodk/@deveodk/vue-online.git"},"bugs":{"url":"https://github.com/deveodk/@deveodk/vue-online/issues"},"homepage":"https://github.com/deveodk/@deveodk/vue-online#readme","license":{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},"gitHead":"01ec53fe4f29e5c0cf789dddab1c68c89e911876","_id":"@deveodk/vue-online@1.0.0","_npmVersion":"5.0.0","_nodeVersion":"7.9.0","_npmUser":{"name":"deveodk","email":"konto@deveo.dk"},"dist":{"integrity":"sha512-BHLgHt5fzWDhLwipbYXu/hjmICxsRB60lhTnE3/Dd98hdLEyQfrG6DYSC9P5UX4huoVGg7JqyunDeKlozBuYEQ==","shasum":"1c73ea7bcbaba71f4dddcb1975a031404657b9f0","tarball":"https://registry.npmjs.org/@deveodk/vue-online/-/vue-online-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqC0EiKIytUWjUc5mEMV5cAiKYHxlJsovhKVwXHcQTRQIgNLLdExKdLt0kbwo59LeFCHqKWmdf+qAjycYfChYKxLg="}]},"maintainers":[{"name":"deveodk","email":"konto@deveo.dk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-online-1.0.0.tgz_1496319199914_0.8476152627263218"}},"1.0.1":{"name":"@deveodk/vue-online","version":"1.0.1","description":"An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.","author":{"name":"Jason Kelly","email":"jk@deveo.dk"},"main":"dist/@deveodk/vue-online.common.js","module":"dist/@deveodk/vue-online.esm.js","browser":"dist/@deveodk/vue-online.js","unpkg":"dist/@deveodk/vue-online.js","style":"dist/@deveodk/vue-online.css","files":["dist","src","drivers"],"scripts":{"clean":"rimraf dist","build":"yon run build:common && yon run build:browser && yon run build:browser:min","build:common":"cross-env NODE_ENV=common webpack --config build/webpack.config.common.js --progress --hide-modules","build:browser:base":"webpack --config build/webpack.config.browser.js --progress --hide-modules","build:browser":"cross-env NODE_ENV=browser yon run build:browser:base","build:browser:min":"cross-env NODE_ENV=production yon run build:browser:base -- -p","build:dll":"webpack --progress --config build/webpack.config.dll.js","lint":"yon run lint:js && yon run lint:css","lint:js":"eslint --ext js --ext jsx --ext vue src test/**/*.spec.js test/*.js build","lint:js:fix":"yon run lint:js -- --fix","lint:css":"stylelint src/**/*.{vue,css}","lint:staged":"lint-staged","pretest":"yon run lint","test":"cross-env BABEL_ENV=test karma start test/karma.conf.js --single-run","dev":"webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js --open","dev:coverage":"cross-env BABEL_ENV=test karma start test/karma.conf.js","prepublish":"yon run build"},"lint-staged":{"*.{vue,jsx,js}":["eslint --fix"],"*.{vue,css}":["stylefmt","stylelint"]},"pre-commit":"lint:staged","devDependencies":{"null-loader":"^0.1.1","add-asset-html-webpack-plugin":"^2.0.0","babel-core":"^6.24.0","babel-eslint":"^7.2.0","babel-helper-vue-jsx-merge-props":"^2.0.0","babel-loader":"^7.0.0","babel-plugin-istanbul":"^4.1.0","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-runtime":"^6.23.0","babel-plugin-transform-vue-jsx":"^3.4.0","babel-preset-env":"^1.4.0","chai":"^3.5.0","chai-dom":"^1.4.0","cross-env":"^4.0.0","css-loader":"^0.28.0","eslint":"^3.19.0","eslint-config-vue":"^2.0.0","eslint-plugin-vue":"^2.0.0","extract-text-webpack-plugin":"^2.1.0","html-webpack-plugin":"^2.28.0","karma":"^1.7.0","karma-chai-dom":"^1.1.0","karma-chrome-launcher":"^2.1.0","karma-coverage":"^1.1.0","karma-mocha":"^1.3.0","karma-sinon-chai":"^1.3.0","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"^0.0.31","karma-webpack":"^2.0.0","lint-staged":"^3.4.0","mocha":"^3.3.0","mocha-css":"^1.0.1","postcss":"^6.0.0","postcss-cssnext":"^2.10.0","pre-commit":"^1.2.0","rimraf":"^2.6.0","sinon":"2.2.0","sinon-chai":"^2.10.0","style-loader":"^0.17.0","stylefmt":"^5.3.0","stylelint":"^7.10.0","stylelint-config-standard":"^16.0.0","stylelint-processor-html":"^1.0.0","uppercamelcase":"^3.0.0","vue":"^2.3.0","vue-loader":"^12.0.0","vue-template-compiler":"^2.3.0","webpack":"^2.5.0","webpack-bundle-analyzer":"^2.4.0","webpack-dashboard":"^0.4.0","webpack-dev-server":"^2.4.0","webpack-merge":"^4.0.0","yarn-or-npm":"^2.0.0"},"peerDependencies":{"vue":"^2.3.0"},"dllPlugin":{"name":"vuePluginTemplateDeps","include":["mocha/mocha.js","style-loader!css-loader!mocha-css","html-entities","vue/dist/vue.js","chai","core-js/library","url","sockjs-client","vue-style-loader/lib/addStylesClient.js","events","ansi-html","style-loader/addStyles.js"]},"repository":{"type":"git","url":"git+https://github.com/deveodk/@deveodk/vue-online.git"},"bugs":{"url":"https://github.com/deveodk/@deveodk/vue-online/issues"},"homepage":"https://github.com/deveodk/@deveodk/vue-online#readme","license":{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},"gitHead":"2a61da915c80b40edccc21b243e99d072ffa3f41","_id":"@deveodk/vue-online@1.0.1","_npmVersion":"5.0.0","_nodeVersion":"7.9.0","_npmUser":{"name":"deveodk","email":"konto@deveo.dk"},"dist":{"integrity":"sha512-dBJ1xedoyfjxl4aYPrby+/6se1rNFUlL+1zKwM3DBLeqh3aF7rP5Z7ovMmTn/xTqXdO5wxlOazQJ2O2sMEO7Nw==","shasum":"6e2f97a0f7d1d35ada2e0c2e46c77fe82ec84fe2","tarball":"https://registry.npmjs.org/@deveodk/vue-online/-/vue-online-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByAGfPUN4xnsXfFmx+H51a7QW/WyStuCUjMheg2HvZlAiAxjnVeCK4dxMbKcJVMBiQfAmzaDeAByuourF7z3U4l5Q=="}]},"maintainers":[{"name":"deveodk","email":"konto@deveo.dk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-online-1.0.1.tgz_1496671326697_0.2782900945749134"}},"1.0.2":{"name":"@deveodk/vue-online","version":"1.0.2","description":"An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.","author":{"name":"Jason Kelly","email":"jk@deveo.dk"},"main":"dist/@deveodk/vue-online.common.js","module":"dist/@deveodk/vue-online.esm.js","browser":"dist/@deveodk/vue-online.js","unpkg":"dist/@deveodk/vue-online.js","style":"dist/@deveodk/vue-online.css","keywords":["vuejs","vue","vue-component","component","deveodk","online"],"files":["dist","src","drivers"],"scripts":{"clean":"rimraf dist","build":"yon run build:common && yon run build:browser && yon run build:browser:min","build:common":"cross-env NODE_ENV=common webpack --config build/webpack.config.common.js --progress --hide-modules","build:browser:base":"webpack --config build/webpack.config.browser.js --progress --hide-modules","build:browser":"cross-env NODE_ENV=browser yon run build:browser:base","build:browser:min":"cross-env NODE_ENV=production yon run build:browser:base -- -p","build:dll":"webpack --progress --config build/webpack.config.dll.js","lint":"yon run lint:js && yon run lint:css","lint:js":"eslint --ext js --ext jsx --ext vue src test/**/*.spec.js test/*.js build","lint:js:fix":"yon run lint:js -- --fix","lint:css":"stylelint src/**/*.{vue,css}","lint:staged":"lint-staged","pretest":"yon run lint","test":"cross-env BABEL_ENV=test karma start test/karma.conf.js --single-run","dev":"webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js --open","dev:coverage":"cross-env BABEL_ENV=test karma start test/karma.conf.js","prepublish":"yon run build"},"lint-staged":{"*.{vue,jsx,js}":["eslint --fix"],"*.{vue,css}":["stylefmt","stylelint"]},"pre-commit":"lint:staged","devDependencies":{"null-loader":"^0.1.1","add-asset-html-webpack-plugin":"^2.0.0","babel-core":"^6.24.0","babel-eslint":"^7.2.0","babel-helper-vue-jsx-merge-props":"^2.0.0","babel-loader":"^7.0.0","babel-plugin-istanbul":"^4.1.0","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-runtime":"^6.23.0","babel-plugin-transform-vue-jsx":"^3.4.0","babel-preset-env":"^1.4.0","chai":"^3.5.0","chai-dom":"^1.4.0","cross-env":"^4.0.0","css-loader":"^0.28.0","eslint":"^3.19.0","eslint-config-vue":"^2.0.0","eslint-plugin-vue":"^2.0.0","extract-text-webpack-plugin":"^2.1.0","html-webpack-plugin":"^2.28.0","karma":"^1.7.0","karma-chai-dom":"^1.1.0","karma-chrome-launcher":"^2.1.0","karma-coverage":"^1.1.0","karma-mocha":"^1.3.0","karma-sinon-chai":"^1.3.0","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"^0.0.31","karma-webpack":"^2.0.0","lint-staged":"^3.4.0","mocha":"^3.3.0","mocha-css":"^1.0.1","postcss":"^6.0.0","postcss-cssnext":"^2.10.0","pre-commit":"^1.2.0","rimraf":"^2.6.0","sinon":"2.2.0","sinon-chai":"^2.10.0","style-loader":"^0.17.0","stylefmt":"^5.3.0","stylelint":"^7.10.0","stylelint-config-standard":"^16.0.0","stylelint-processor-html":"^1.0.0","uppercamelcase":"^3.0.0","vue":"^2.3.0","vue-loader":"^12.0.0","vue-template-compiler":"^2.3.0","webpack":"^2.5.0","webpack-bundle-analyzer":"^2.4.0","webpack-dashboard":"^0.4.0","webpack-dev-server":"^2.4.0","webpack-merge":"^4.0.0","yarn-or-npm":"^2.0.0"},"peerDependencies":{"vue":"^2.3.0"},"dllPlugin":{"name":"vuePluginTemplateDeps","include":["mocha/mocha.js","style-loader!css-loader!mocha-css","html-entities","vue/dist/vue.js","chai","core-js/library","url","sockjs-client","vue-style-loader/lib/addStylesClient.js","events","ansi-html","style-loader/addStyles.js"]},"repository":{"type":"git","url":"git+https://github.com/deveodk/vue-online.git"},"bugs":{"url":"https://github.com/deveodk/vue-online/issues"},"homepage":"https://github.com/deveodk/vue-online#readme","license":{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},"gitHead":"1d188335b2377e496e6c835131bf2c3df243ddcf","_id":"@deveodk/vue-online@1.0.2","_npmVersion":"5.0.0","_nodeVersion":"7.9.0","_npmUser":{"name":"deveodk","email":"konto@deveo.dk"},"dist":{"integrity":"sha512-Hb6/u1iIbIv9UO/7Oy+OCI/CM8iFWqQ32bNTjxU/5eSjJ9T8CxGttOcuia0ZL8qnnwe9PlkJpTjRE/TouUQcVQ==","shasum":"22aaeb34e2c5b2bf85614e955f71b4091e0ee16f","tarball":"https://registry.npmjs.org/@deveodk/vue-online/-/vue-online-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCG7ntdIZydWh7APTb9wGEK4sE5TgadG80lv3xCQ1ei3AIhAJ9PuuOXNrQ82C1eGomZv6P9CVQDnaK1hiTwTpLR1QPK"}]},"maintainers":[{"name":"deveodk","email":"konto@deveo.dk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-online-1.0.2.tgz_1496694605971_0.8668292434886098"}}},"readme":"# @deveodk/vueOnline\n\n<img src=\"https://cloud.githubusercontent.com/assets/7561792/26679286/abc5ffd0-46d4-11e7-8578-8d1525600d77.png\" width=\"100%\" />\n\n[![npm](https://img.shields.io/npm/v/@deveodk/vue-online.svg)](https://www.npmjs.com/package/@deveodk/vue-online) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n\n> An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.\n\n# Demo\nSee a functioning demo\n<a href=\"https://packages.deveo.io/packages/vue/vue-online\">deveo demo site</a>\n\n\n## Installation\n\n```bash\nnpm install --save @deveodk/vue-online\n```\n\n### Bundler (Webpack, Rollup)\n\n```js\nimport Vue from 'vue'\nimport vueOnline from '@deveodk/vue-online'\nVue.use(vueOnline)\n```\n\n### Browser\n\n```html\n<!-- From CDN -->\n<script src=\"https://unpkg.com/@deveodk/vue-online\"></script>\n```\n\n\n\n## Usage\n\nThe package provides multiple options to notfiy if a users browser is online. The easiest way is to let the plugin do it automaticly. \n\n#### Using @deveodk/vue-toastr driver\n\n```code\n# Using the default notification\nimport online from '@deveodk/vue-online'\nVue.use(online, {\n    notifier: require('@deveodk/vue-online/drivers/deveoToastr.js'),\n    defaultOnlineTitle: 'Online',\n    defaultOnlineMessage: 'You are online',\n    defaultOfflineTitle: 'Offline',\n    defaultOffilneMessage: 'You are offline'\n})\n\n```\n\n#### Extending the functionality on your own\n\n```code\n# The plugin comes with a build in mixin that allows you to make your own functionality\n  import {VueOnline} from '@deveodk/vue-online'\n  export default {\n      mixins: [VueOnline]\n  }\n```\n\nThis will give you a reactive variable ```{{VueOnline}}``` the variable is either ```true``` for online, or ```false``` for offline\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\n<img src=\"https://cloud.githubusercontent.com/assets/7561792/26679305/bc4d7bda-46d4-11e7-9270-3f6cacdd0ae9.png\" width=\"100%\" />\n","maintainers":[{"name":"deveodk","email":"konto@deveo.dk"}],"time":{"modified":"2022-04-05T04:05:17.093Z","created":"2017-06-01T12:13:21.272Z","1.0.0":"2017-06-01T12:13:21.272Z","1.0.1":"2017-06-05T14:02:07.609Z","1.0.2":"2017-06-05T20:30:06.934Z"},"homepage":"https://github.com/deveodk/vue-online#readme","repository":{"type":"git","url":"git+https://github.com/deveodk/vue-online.git"},"author":{"name":"Jason Kelly","email":"jk@deveo.dk"},"bugs":{"url":"https://github.com/deveodk/vue-online/issues"},"license":{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},"readmeFilename":"README.md","keywords":["vuejs","vue","vue-component","component","deveodk","online"]}