Parses HTML5 application cache manifest.
npm install parse-appcache-manifest
parseManifest =entries =
entries will be an object with four properties:
network are arrays which contain entries.
fallback is an object with the url (or url pattern) as key, and the fallback url as value.
If you need access to a tokenized version of the manifest file (e.g., you want to modify an existing manifest file and need to preserve comments and newlines, etc)
appcacheParse = require 'parse-appcache-manifest'result = appcacheParseinputtokens
result is a flat, ordered list of tokens that comes back.
CACHE MANIFEST# some explicit resourcesCACHE:/happy.html/good.cssNETWORK:*http://*https://*
You can use https://github.com/meryn/render-appcache-manifest to convert a token list back to an appcache manifest.
To compile the code:
cd parse-appcache-manifestcoffee -cm -o lib/ src/
This code is based on code from Mikko Ohtamaa.
Tokenizing support, settings support, whatwg spec conformance, and updated documentation from https://github.com/mreinstein.