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


Speclate service worker

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)