sw-power-router
A powerfull router for your service worker
Last updated 5 months ago by mkg20001 .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sw-power-router 
SYNC missed versions from official npm registry.

sw-power-router

A powerfull router for your service worker

What does it do?

It provides a powerful, hapi-component based routing mechanism to your service worker that allows you to run anything pretty easily

  • Make APIs as a function and handle status-code based errors easily via boom integration
  • Add parameters into the path and let them get handled
  • If you're lazy just return a string and the router will handle other things for you

API

  • Router(self) returns object
    • router.route({method, path}, handler) adds a route

Current Tags

  • 0.1.0                                ...           latest (5 months ago)

7 Versions

  • 0.1.0                                ...           5 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           6 months ago
  • 0.0.1                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |