{"_id":"sw-toolbox","_rev":"370166","name":"sw-toolbox","description":"Service Worker Toolbox provides some simple helpers for use in creating your own service workers.","dist-tags":{"latest":"3.6.0"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"time":{"modified":"2021-07-26T06:58:20.000Z","created":"2015-04-21T10:44:50.089Z","3.6.0":"2017-02-23T19:26:08.776Z","3.5.1":"2017-02-16T16:27:59.848Z","3.5.0":"2017-02-16T16:02:42.191Z","3.4.0":"2016-10-18T16:49:53.298Z","3.3.0":"2016-09-21T18:23:36.986Z","3.2.1":"2016-06-09T12:35:34.503Z","3.2.0":"2016-06-07T13:27:37.177Z","3.1.1":"2016-01-19T17:59:37.361Z","3.1.0":"2016-01-19T17:54:49.642Z","3.0.1":"2015-10-16T10:06:07.691Z","3.0.0":"2015-10-16T09:58:21.586Z","2.1.0":"2015-09-28T12:25:01.318Z","2.0.4":"2015-07-30T15:24:36.279Z","2.0.3":"2015-06-05T14:58:45.262Z","2.0.2":"2015-06-03T09:32:37.490Z","2.0.0":"2015-04-21T10:44:50.089Z"},"users":{"xiaochao":true,"shawndsouza":true,"charlietango592":true,"leonardo":true,"jimco":true,"diegoangel":true,"drewigg":true,"nisimjoseph":true,"luckyulin":true,"ybm":true,"gurunate":true},"repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"versions":{"3.6.0":{"name":"sw-toolbox","version":"3.6.0","description":"Service Worker Toolbox provides some simple helpers for use in creating your own service workers.","license":"Apache-2.0","scripts":{"build":"gulp default","test":"gulp lint default && node ./test/helpers/download-browsers.js && mocha","publish-release":"npm-publish-scripts publish-release"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"path-to-regexp":"^1.0.1","serviceworker-cache-polyfill":"^4.0.0"},"devDependencies":{"browserify":"^13.1.0","chai":"^3.4.1","chromedriver":"^2.27.2","cookie-parser":"^1.4.1","eslint":"^3.13.1","eslint-config-google":"^0.7.1","express":"^4.13.3","geckodriver":"^1.3.0","gulp":"^3.9.0","gulp-eslint":"^3.0.1","gulp-gh-pages":"^0.5.4","gulp-header":"^1.8.8","gulp-sourcemaps":"^2.3.1","gulp-uglify":"^2.0.0","jsdoc":"^3.4.0","mocha":"^3.2.0","npm-publish-scripts":"^4.1.0","operadriver":"^1.0.0","selenium-assistant":"^5.0.2","sw-testing-helpers":"1.0.1","temp":"^0.8.3","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"files":["lib/","companion.js","sw-toolbox.js","sw-toolbox.js.map","index.d.ts"],"gitHead":"8065b424d3992037389bb585cebc84c2e0936f66","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.6.0","_shasum":"26df1d1c70348658e4dea2884319149b7b3183b5","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"jeffposnick","email":"jeffy@google.com"},"dist":{"shasum":"26df1d1c70348658e4dea2884319149b7b3183b5","size":35564,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.6.0.tgz"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.6.0.tgz_1487877968220_0.07672298746183515"},"directories":{},"publish_time":1487877968776,"_cnpm_publish_time":1487877968776,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.5.1":{"name":"sw-toolbox","version":"3.5.1","description":"Service Worker Toolbox provides some simple helpers for use in creating your own service workers.","license":"Apache-2.0","scripts":{"publish-release":"publish-release.sh","publish-docs":"publish-docs.sh","build":"gulp default","build-docs":"echo No Reference Docs to Build.","test":"gulp lint default && node ./test/helpers/download-browsers.js && mocha","bundle":"./project/create-release-bundle.sh"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"^4.0.0","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^13.1.0","chai":"^3.4.1","chromedriver":"^2.27.2","cookie-parser":"^1.4.1","eslint":"^3.13.1","eslint-config-google":"^0.7.1","express":"^4.13.3","geckodriver":"^1.3.0","gulp":"^3.9.0","gulp-eslint":"^3.0.1","gulp-gh-pages":"^0.5.4","gulp-header":"^1.8.8","gulp-sourcemaps":"^2.3.1","gulp-uglify":"^2.0.0","jsdoc":"^3.4.0","mocha":"^3.2.0","npm-publish-scripts":"^2.0.7","operadriver":"^1.0.0","selenium-assistant":"^5.0.2","sw-testing-helpers":"1.0.1","temp":"^0.8.3","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"files":["lib/","companion.js","sw-toolbox.js","sw-toolbox.js.map"],"gitHead":"2816d7f0d8089917be2c382e7c76a9b27a8e387c","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.5.1","_shasum":"99cbd5783a37a271ce514fd4c3022144b3169052","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jeffposnick","email":"jeffy@google.com"},"dist":{"shasum":"99cbd5783a37a271ce514fd4c3022144b3169052","size":35216,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.5.1.tgz"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.5.1.tgz_1487262477847_0.6838236034382135"},"directories":{},"publish_time":1487262479848,"_cnpm_publish_time":1487262479848,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.5.0":{"name":"sw-toolbox","version":"3.5.0","description":"Service Worker Toolbox provides some simple helpers for use in creating your own service workers.","license":"Apache-2.0","scripts":{"publish-release":"publish-release.sh","publish-docs":"publish-docs.sh","build":"gulp default","build-docs":"echo No Reference Docs to Build.","test":"gulp lint default && node ./test/helpers/download-browsers.js && mocha","bundle":"./project/create-release-bundle.sh"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"^4.0.0","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^13.1.0","chai":"^3.4.1","chromedriver":"^2.27.2","cookie-parser":"^1.4.1","eslint":"^3.13.1","eslint-config-google":"^0.7.1","express":"^4.13.3","geckodriver":"^1.3.0","gulp":"^3.9.0","gulp-eslint":"^3.0.1","gulp-gh-pages":"^0.5.4","gulp-header":"^1.8.8","gulp-sourcemaps":"^2.3.1","gulp-uglify":"^2.0.0","jsdoc":"^3.4.0","mocha":"^3.2.0","npm-publish-scripts":"^2.0.7","operadriver":"^1.0.0","selenium-assistant":"^5.0.2","sw-testing-helpers":"1.0.1","temp":"^0.8.3","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"files":["lib/","companion.js","sw-toolbox.js","sw-toolbox.js.map"],"gitHead":"80d07f7e009e3068ca594da40b9d745ad2b5fdac","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.5.0","_shasum":"23efd7f42c344d852369571465a5c11f5ebf37dd","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jeffposnick","email":"jeffy@google.com"},"dist":{"shasum":"23efd7f42c344d852369571465a5c11f5ebf37dd","size":13205,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.5.0.tgz"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.5.0.tgz_1487260960355_0.4431661234702915"},"directories":{},"publish_time":1487260962191,"_cnpm_publish_time":1487260962191,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.4.0":{"name":"sw-toolbox","version":"3.4.0","description":"Service Worker Toolbox provides some simple helpers for use in creating your own service workers.","license":"Apache-2.0","scripts":{"publish-release":"publish-release.sh","publish-docs":"publish-docs.sh","build":"gulp default","build-docs":"echo No Reference Docs to Build.","test":"gulp lint default && node ./test/helpers/download-browsers.js && mocha","bundle":"./project/create-release-bundle.sh"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"^4.0.0","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^13.1.0","chai":"^3.4.1","chromedriver":"^2.24.1","cookie-parser":"^1.4.1","eslint":"^1.10.3","eslint-config-google":"^0.3.0","express":"^4.13.3","geckodriver":"^1.1.2","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-gh-pages":"^0.5.4","gulp-header":"^1.8.8","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^2.0.0","jsdoc":"^3.4.0","jshint-stylish":"^2.1.0","mocha":"^2.3.4","npm-publish-scripts":"^2.0.7","operadriver":"^0.2.2","qunitjs":"^1.20.0","selenium-assistant":"^1.0.0","selenium-webdriver":"^3.0.0-beta-2","sw-testing-helpers":"0.1.4","temp":"^0.8.3","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"files":["lib/","companion.js","sw-toolbox.js","sw-toolbox.js.map"],"gitHead":"f67bc1a7c69da54b600191b938f809c24881ef51","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.4.0","_shasum":"a16efecf4a79ed32191cf1923525f2ee89bc76dc","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"jeffposnick","email":"jeffy@google.com"},"dist":{"shasum":"a16efecf4a79ed32191cf1923525f2ee89bc76dc","size":33861,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.4.0.tgz"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.4.0.tgz_1476809392673_0.9463150016963482"},"directories":{},"publish_time":1476809393298,"_cnpm_publish_time":1476809393298,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.3.0":{"name":"sw-toolbox","version":"3.3.0","description":"Service Worker Toolbox provides some simple helpers for use in creating your own service workers.","license":"Apache-2.0","scripts":{"publish-release":"publish-release.sh","publish-docs":"publish-docs.sh","build":"gulp default","build-docs":"echo No Reference Docs to Build.","test":"gulp lint default && node ./test/helpers/download-browsers.js && mocha","bundle":"./project/create-release-bundle.sh"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"^4.0.0","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^12.0.1","browserify-header":"^0.9.2","chai":"^3.4.1","chromedriver":"^2.24.1","cookie-parser":"^1.4.1","eslint":"^1.10.3","eslint-config-google":"^0.3.0","express":"^4.13.3","geckodriver":"^1.1.2","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-gh-pages":"^0.5.4","jsdoc":"^3.4.0","jshint-stylish":"^2.1.0","minifyify":"^7.1.0","mocha":"^2.3.4","npm-publish-scripts":"^2.0.7","operadriver":"^0.2.2","qunitjs":"^1.20.0","selenium-assistant":"^1.0.0","selenium-webdriver":"^3.0.0-beta-2","sw-testing-helpers":"0.1.4","temp":"^0.8.3","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"gitHead":"f2bd806f1f3c857b17ce84aba2d6aa636793b292","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.3.0","_shasum":"3ce48362208acbd293dd6a3825e910fbcbfaf158","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"jeffposnick","email":"jeffy@google.com"},"dist":{"shasum":"3ce48362208acbd293dd6a3825e910fbcbfaf158","size":55310,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.3.0.tgz"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.3.0.tgz_1474482216388_0.7240475385915488"},"directories":{},"publish_time":1474482216986,"_cnpm_publish_time":1474482216986,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.2.1":{"name":"sw-toolbox","version":"3.2.1","license":"Apache-2.0","scripts":{"publish-release":"./node_modules/sw-testing-helpers/project/publish-release.sh","build":"gulp default","build-docs":"jsdoc -c jsdoc.json && cp ./build/sw-toolbox.js ./docs/","test":"gulp lint && gulp test:automated","bundle":"./project/create-release-bundle.sh"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"^4.0.0","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^12.0.1","browserify-header":"^0.9.2","chai":"^3.4.1","chromedriver":"^2.20.0","cookie-parser":"^1.4.1","eslint":"^1.10.3","eslint-config-google":"^0.3.0","express":"^4.13.3","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-gh-pages":"^0.5.4","gulp-mocha":"^2.2.0","jsdoc":"^3.4.0","jshint-stylish":"^2.1.0","minifyify":"^7.1.0","mocha":"^2.3.4","qunitjs":"^1.20.0","selenium-webdriver":"^2.48.2","sw-testing-helpers":"0.0.14","temp":"^0.8.3","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"gitHead":"2a979f3b20a15264e162636bf998e9c45b8f9e39","description":"[![Build Status](https://travis-ci.org/GoogleChrome/sw-toolbox.svg?branch=master)](https://travis-ci.org/GoogleChrome/sw-toolbox) [![Dependency Status](https://david-dm.org/googlechrome/sw-toolbox.svg)](https://david-dm.org/googlechrome/sw-toolbox) [![dev","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.2.1","_shasum":"c3556e47851747fddad6fcce3b2be8fa85376e30","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.1","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"c3556e47851747fddad6fcce3b2be8fa85376e30","size":458494,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.2.1.tgz_1465475731901_0.20196084678173065"},"directories":{},"publish_time":1465475734503,"_cnpm_publish_time":1465475734503,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.2.0":{"name":"sw-toolbox","version":"3.2.0","license":"Apache-2.0","scripts":{"publish-release":"./node_modules/sw-testing-helpers/project/publish-release.sh","build":"gulp default","build-docs":"jsdoc -c jsdoc.json && cp ./build/sw-toolbox.js ./docs/","test":"gulp lint && gulp test:automated","bundle":"./project/create-release-bundle.sh"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"^4.0.0","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^12.0.1","browserify-header":"^0.9.2","chai":"^3.4.1","chromedriver":"^2.20.0","cookie-parser":"^1.4.1","eslint":"^1.10.3","eslint-config-google":"^0.3.0","express":"^4.13.3","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-gh-pages":"^0.5.4","gulp-mocha":"^2.2.0","jsdoc":"^3.4.0","jshint-stylish":"^2.1.0","minifyify":"^7.1.0","mocha":"^2.3.4","qunitjs":"^1.20.0","selenium-webdriver":"^2.48.2","sw-testing-helpers":"0.0.14","temp":"^0.8.3","vinyl-source-stream":"^1.1.0","which":"^1.2.4"},"gitHead":"ea004259ba02b4c1866b102b229bf2a62bfac50e","description":"[![Build Status](https://travis-ci.org/GoogleChrome/sw-toolbox.svg?branch=master)](https://travis-ci.org/GoogleChrome/sw-toolbox) [![Dependency Status](https://david-dm.org/googlechrome/sw-toolbox.svg)](https://david-dm.org/googlechrome/sw-toolbox) [![dev","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.2.0","_shasum":"b31fa75c97520a466fa48dd8ae4c9a6bad1e623a","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.1","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"b31fa75c97520a466fa48dd8ae4c9a6bad1e623a","size":440772,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/sw-toolbox-3.2.0.tgz_1465306055135_0.9447941130492836"},"directories":{},"publish_time":1465306057177,"_cnpm_publish_time":1465306057177,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.1.1":{"name":"sw-toolbox","version":"3.1.1","license":"Apache-2.0","scripts":{"test":"gulp lint"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"github:coonsta/cache-polyfill","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^12.0.1","browserify-header":"^0.9.2","chai":"^3.4.1","eslint":"^1.10.3","eslint-config-google":"^0.3.0","express":"^4.13.3","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-gh-pages":"^0.5.4","jshint-stylish":"^2.1.0","minifyify":"^7.1.0","mocha":"^2.3.4","qunitjs":"^1.20.0","temp":"^0.8.3","vinyl-source-stream":"^1.1.0"},"gitHead":"1cdcbdccef51d2726ea74d877e6fd2b97926b09c","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.1.1","_shasum":"4be6284b2b34eeddd837bc1bf28f75bc6a078299","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"4be6284b2b34eeddd837bc1bf28f75bc6a078299","size":44400,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.1.1.tgz"},"directories":{},"publish_time":1453226377361,"_cnpm_publish_time":1453226377361,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.1.0":{"name":"sw-toolbox","version":"3.1.0","license":"Apache-2.0","scripts":{"test":"gulp lint"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"github:coonsta/cache-polyfill","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^12.0.1","browserify-header":"^0.9.2","chai":"^3.4.1","eslint":"^1.10.3","eslint-config-google":"^0.3.0","express":"^4.13.3","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-gh-pages":"^0.5.4","jshint-stylish":"^2.1.0","minifyify":"^7.1.0","mocha":"^2.3.4","qunitjs":"^1.20.0","temp":"^0.8.3","vinyl-source-stream":"^1.1.0"},"gitHead":"331fa9e102254e852ff4782f28cb9365ba6d3aa6","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.1.0","_shasum":"b57ee4b43ded30ff7cdf8fadf31dbb0a5425e0af","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"b57ee4b43ded30ff7cdf8fadf31dbb0a5425e0af","size":44275,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.1.0.tgz"},"directories":{},"publish_time":1453226089642,"_cnpm_publish_time":1453226089642,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.0.1":{"name":"sw-toolbox","version":"3.0.1","license":"Apache-2.0","scripts":{"test":"gulp lint"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"github:coonsta/cache-polyfill","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^6.3.2","browserify-header":"^0.9.2","eslint":"^1.4.3","eslint-config-xo":"^0.6.0","gulp":"^3.8.10","gulp-eslint":"^1.0.0","gulp-gh-pages":"^0.5.2","jshint-stylish":"^1.0.0","minifyify":"^6.4.0","qunitjs":"^1.18.0","temp":"^0.8.3","vinyl-source-stream":"^1.0.0"},"gitHead":"6b715f288912f354aed7b39c5c424aee9c74ddf1","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.0.1","_shasum":"a3f2e510cf741ae178df10940fa6b07164d01e01","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"a3f2e510cf741ae178df10940fa6b07164d01e01","size":37337,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.0.1.tgz"},"directories":{},"publish_time":1444989967691,"_cnpm_publish_time":1444989967691,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"3.0.0":{"name":"sw-toolbox","version":"3.0.0","license":"Apache-2.0","scripts":{"test":"gulp lint"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"dependencies":{"serviceworker-cache-polyfill":"github:coonsta/cache-polyfill","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^6.3.2","browserify-header":"^0.9.2","eslint":"^1.4.3","eslint-config-xo":"^0.6.0","gulp":"^3.8.10","gulp-eslint":"^1.0.0","gulp-gh-pages":"^0.5.2","jshint-stylish":"^1.0.0","minifyify":"^6.4.0","qunitjs":"^1.18.0","temp":"^0.8.3","vinyl-source-stream":"^1.0.0"},"gitHead":"6af19c8b71dfa24ad325d05223ba15df3a39590d","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@3.0.0","_shasum":"2e82ebd19ed1bafe25671cc3177bf5a339dccdcd","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"2e82ebd19ed1bafe25671cc3177bf5a339dccdcd","size":37328,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-3.0.0.tgz"},"directories":{},"publish_time":1444989501586,"_cnpm_publish_time":1444989501586,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"2.1.0":{"name":"sw-toolbox","version":"2.1.0","license":"Apache-2.0","scripts":{"test":"gulp lint"},"main":"lib/sw-toolbox.js","repository":{"type":"git","url":"https://github.com/GoogleChrome/sw-toolbox"},"dependencies":{"serviceworker-cache-polyfill":"git+https://github.com/coonsta/cache-polyfill","path-to-regexp":"^1.0.1"},"devDependencies":{"browserify":"^6.3.2","browserify-header":"^0.9.2","eslint":"^1.4.3","eslint-config-xo":"^0.6.0","gulp":"^3.8.10","gulp-eslint":"^1.0.0","jshint-stylish":"^1.0.0","minifyify":"^6.4.0","qunitjs":"^1.18.0","vinyl-source-stream":"^1.0.0"},"gitHead":"f4058bc51504ed8ee94f6ff863ac943629ba25ff","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox","_id":"sw-toolbox@2.1.0","_shasum":"b15cf8ce63fc0bb9957aa2329ce60d2c1fe57bb3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"b15cf8ce63fc0bb9957aa2329ce60d2c1fe57bb3","size":30446,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-2.1.0.tgz"},"directories":{},"publish_time":1443443101318,"_cnpm_publish_time":1443443101318,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"2.0.4":{"name":"sw-toolbox","version":"2.0.4","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/GoogleChrome/sw-toolbox"},"devDependencies":{"browserify":"^6.3.2","gulp":"^3.8.10","gulp-jshint":"^1.9.0","jshint-stylish":"^1.0.0","path-to-regexp":"^1.0.1","qunitjs":"^1.18.0","serviceworker-cache-polyfill":"git+https://github.com/coonsta/cache-polyfill","vinyl-source-stream":"^1.0.0"},"dependencies":{"browserify-header":"^0.9.2","minifyify":"^6.4.0"},"gitHead":"52f98c18e1baec51a8cee494f0d92ad1f6eac808","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox","_id":"sw-toolbox@2.0.4","_shasum":"4868cbfef06f4f02562918f7d6ec681a58b92b8e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"4868cbfef06f4f02562918f7d6ec681a58b92b8e","size":22311,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-2.0.4.tgz"},"directories":{},"publish_time":1438269876279,"_cnpm_publish_time":1438269876279,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"2.0.3":{"name":"sw-toolbox","version":"2.0.3","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"devDependencies":{"browserify":"^6.3.2","gulp":"^3.8.10","gulp-jshint":"^1.9.0","jshint-stylish":"^1.0.0","path-to-regexp":"^1.0.1","serviceworker-cache-polyfill":"github:coonsta/cache-polyfill","vinyl-source-stream":"^1.0.0"},"dependencies":{"browserify-header":"^0.9.2","minifyify":"^6.4.0"},"gitHead":"8763dcc9fbc9352d58f184050e2131c42f7b6d68","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@2.0.3","_shasum":"8e8eab88df5d3475200fc7bf969564db86c68708","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.32","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"8e8eab88df5d3475200fc7bf969564db86c68708","size":25729,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-2.0.3.tgz"},"directories":{},"publish_time":1433516325262,"_cnpm_publish_time":1433516325262,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"2.0.2":{"name":"sw-toolbox","version":"2.0.2","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/GoogleChrome/sw-toolbox.git"},"devDependencies":{"browserify":"^6.3.2","gulp":"^3.8.10","gulp-jshint":"^1.9.0","jshint-stylish":"^1.0.0","path-to-regexp":"^1.0.1","serviceworker-cache-polyfill":"github:coonsta/cache-polyfill","vinyl-source-stream":"^1.0.0"},"dependencies":{"browserify-header":"^0.9.2","minifyify":"^6.4.0"},"gitHead":"2af024801cda8d8e5296b8597dee856c787300b3","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","_id":"sw-toolbox@2.0.2","_shasum":"ceb47176adc343e8d708806a849ec924f7f025ae","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.32","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"ceb47176adc343e8d708806a849ec924f7f025ae","size":20407,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-2.0.2.tgz"},"directories":{},"publish_time":1433323957490,"_cnpm_publish_time":1433323957490,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"},"2.0.0":{"name":"sw-toolbox","version":"2.0.0","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/GoogleChrome/sw-toolbox"},"devDependencies":{"browserify":"^6.3.2","gulp":"^3.8.10","gulp-jshint":"^1.9.0","jshint-stylish":"^1.0.0","path-to-regexp":"^1.0.1","serviceworker-cache-polyfill":"git+https://github.com/coonsta/cache-polyfill","vinyl-source-stream":"^1.0.0"},"dependencies":{"browserify-header":"^0.9.2","minifyify":"^6.4.0"},"gitHead":"6752ca9de8e9cd861caf1d85f81173e90c9f05eb","description":"> A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"homepage":"https://github.com/GoogleChrome/sw-toolbox","_id":"sw-toolbox@2.0.0","_shasum":"2588114379e5ae5f925270cc990c50d12a13c68f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wibblymat","email":"mat@wibbly.org.uk"},"maintainers":[{"name":"jeffposnick","email":"jeffy@google.com"},{"name":"wibblymat","email":"mat@wibbly.org.uk"}],"dist":{"shasum":"2588114379e5ae5f925270cc990c50d12a13c68f","size":21009,"noattachment":false,"key":"/sw-toolbox/-/sw-toolbox-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sw-toolbox/download/sw-toolbox-2.0.0.tgz"},"directories":{},"publish_time":1429613090089,"_cnpm_publish_time":1429613090089,"_hasShrinkwrap":false,"deprecated":"Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw"}},"readme":"# Service Worker Toolbox\n\n[![Build Status](https://travis-ci.org/GoogleChrome/sw-toolbox.svg?branch=master)](https://travis-ci.org/GoogleChrome/sw-toolbox) [![Dependency Status](https://david-dm.org/googlechrome/sw-toolbox.svg)](https://david-dm.org/googlechrome/sw-toolbox) [![devDependencies Status](https://david-dm.org/googlechrome/sw-toolbox/dev-status.svg)](https://david-dm.org/googlechrome/sw-toolbox?type=dev)\n\n> A collection of tools for [service workers](https://w3c.github.io/ServiceWorker/)\n\nService Worker Toolbox provides some simple helpers for use in creating your own service workers. Specifically, it provides common caching strategies for dynamic content, such as API calls, third-party resources, and large or infrequently used local resources that you don't want precached.\n\nService Worker Toolbox provides an [expressive approach](https://googlechrome.github.io/sw-toolbox/usage.html#express-style-routes) to using those strategies for runtime requests. If you're not sure what service workers are or what they are for, start with [the explainer doc](https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md).\n\n## What if I need precaching as well?\n\nThen you should go check out [`sw-precache`](https://github.com/GoogleChrome/sw-precache) before doing anything else. In addition to precaching static resources, `sw-precache` supports optional [runtime caching](https://github.com/GoogleChrome/sw-precache#runtime-caching) through a simple, declarative configuration that incorporates Service Worker Toolbox under the hood.\n\n## Install\n\nService Worker Toolbox is available through Bower, npm or direct from GitHub:\n\n`bower install --save sw-toolbox`\n\n`npm install --save sw-toolbox`\n\n`git clone https://github.com/GoogleChrome/sw-toolbox.git`\n\n### Register your service worker\n\nFrom your registering page, register your service worker in the normal way. For example:\n\n```javascript\nnavigator.serviceWorker.register('my-service-worker.js');\n```\n\nAs implemented in Chrome 40 or later, a service worker must exist at the root of the scope that you intend it to control, or higher. So if you want all of the pages under `/myapp/` to be controlled by the worker, the worker script itself must be served from either `/` or `/myapp/`. The default scope is the containing path of the service worker script.\n\nFor even lower friction, you can instead include the Service Worker Toolbox companion script in your HTML as shown below. Be aware that this is not customizable. If you need to do anything fancier than register with a default scope, you'll need to use the standard registration.\n\n```html\n<script src=\"/path/to/sw-toolbox/companion.js\" data-service-worker=\"my-service-worker.js\"></script>\n```\n\n### Add Service Worker Toolbox to your service worker script\n\nIn your service worker you just need to use `importScripts` to load Service Worker Toolbox:\n\n```javascript\nimportScripts('bower_components/sw-toolbox/sw-toolbox.js');  // Update path to match your own setup.\n```\n\n### Use the toolbox\n\nTo understand how to use the toolbox read the [Usage](https://googlechrome.github.io/sw-toolbox/usage.html#main) and [API](https://googlechrome.github.io/sw-toolbox/api.html#main) documentation.\n\n## Support\n\nIf you’ve found an error in this library, please file an issue at https://github.com/GoogleChrome/sw-toolbox/issues.\n\nPatches are encouraged, and may be submitted by forking this project and submitting a [pull request through this GitHub repo](https://github.com/GoogleChrome/sw-toolbox/pulls).\n\n## License\n\nCopyright 2015-2016 Google, Inc.\n\nLicensed under the [Apache License, Version 2.0](LICENSE) (the \"License\");\nyou may not use this file except in compliance with the License. You may\nobtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_attachments":{},"homepage":"https://github.com/GoogleChrome/sw-toolbox#readme","bugs":{"url":"https://github.com/GoogleChrome/sw-toolbox/issues"},"license":"Apache-2.0"}