Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

speclate-service-worker

2.0.7 • Public • Published

Speclate service worker

Greenkeeper badge

Given a speclate spec, works out which files are needed offline, and generates the service worker accordingly.

Also provides a network first strategy for specs to ensure users are always seeing the latest data.

 
'use strict'
var serviceWorker = require('speclate-service-worker')
var spec = require('../spec')
var version = '1.6'
 
serviceWorker(spec, version)
 

Keywords

none

install

npm i speclate-service-worker

Downloadsweekly downloads

10

version

2.0.7

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability