Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
appcachegen
Advanced tools
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
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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.