Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
appcachegen
Advanced tools
Readme
A node module that generates a HTML5 AppCache manifest for static websites based on a directories contents.
$ npm install appcachegen --save
to install in your project or
$ npm install -g appcachegen
to install globally
appcachegen can be used at the command line or in your node.js code,
$ appcachegen --help
Usage: appcachegen [directory] [options]
Options:
-o, --output Write to file
-i, --ignore Ignore file
-r, --rules Extra rules file
--help, -h Show help
Example use
$ appcachegen _site/ > _site/manifest.appcache
$ cat _site/manifest.appcache
$ node appcachegen.js ~/src/pouchdb/docs/_site/
CACHE MANIFEST
# Sun Nov 30 2014 10:45:02 GMT+0100 (CET)
/adapters.html
/api.html
/errors.html
/external.html
/static/favicon.ico
/static/css/pouchdb.css
/static/img/apple-indexeddb.png
NETWORK:
*
By default appcachegen will look for .appcacheignore
and ignore any files
which match the rules listed in that file, you can specify a path to the
ignore file with -o
$ appcachegen -o ~/project/.gitignore
You will often need to add external files and customise how NETWORK
and
FALLBACK
are handled, you can do this by pointing to an extra file to include
in the manifest
$ cat manifest-rules
http://code.jquery.com/jquery.min.js
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js
$ appcachegen -r manifest-rules
CACHE MANIFEST
# Sun Nov 30 2014 10:45:02 GMT+0100 (CET)
/index.html
/static/img/apple-indexeddb.png
http://code.jquery.com/jquery.min.js
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js
NETWORK:
*
By default appcachegen
will provide a sensible default for the NETWORK:
field:
NETWORK:
*
If you want to customise this then you can add them to the included rules
file as above $ appcachegen -r manifest-rules
, if you specify your own
NETWORK
option the default will not be provided.
Web servers will usually allow you to access /path/index.html
as /path/
if you dont specify both in the AppCache then the link will be broken when
offline, appcachegen
will automatically add both to the AppCache.
If you have any issues using appcachegen
or features you require, then please
file a bug @ https://github.com/daleharvey/appcachegen/issues.
FAQs
Generate AppCache from local directory
The npm package appcachegen receives a total of 4 weekly downloads. As such, appcachegen popularity was classified as not popular.
We found that appcachegen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.