parse-appcache-manifest
v0.2.0
Published
Parses HTML5 application cache manifest.
Downloads
7
Readme
parse-appcache-manifest
Parses HTML5 application cache manifest.
Usage
parseManifest = require("parse-appcache-manifest")
entries = parseManifest(manifest)
entries
will be an object with three properties: cache
, network
, fallback
.
cache
and network
are both arrays which contain entries.
fallback
is an object with the url (or url pattern) as key, and the fallback url as value.
Credits
The initial structure of this module was generated by Jumpstart, using the Jumpstart Black Coffee template.
This code is based on code from Mikko Ohtamaa.
License
parse-appcache-manifest is released under the MIT License.
Copyright (c) 2013 Meryn Stol