makestatic-audit-files
v1.0.10
Published
Verifies integrity of files on disc
Downloads
19
Maintainers
Readme
Audit Files
Verify file integrity
Install
yarn add makestatic-audit-files
API
AuditFiles
Verifies the checksums of output files on disc against the in-memory manifest. Useful if you need to verify the integrity of file content before performing a deployment.
For each key in the manifest files
map read the file from disc and verify
it's checksum against the manifest data.
Use this plugin when you need to verify files on disc before performing a deployment.
If no provider
option has been specified this plugin does not execute.
See Also
.after
AuditFiles.prototype.after(context)
Audits the files on disc against the in-memory manifest data.
Returns a promise that resolves when all files have been audited
context
Object the processing context.
Throws
Error
if the manifest has not been set on the context.Error
if the file read operation fails.Error
on checksum mismatch.
License
MIT
Created by mkdoc on March 12, 2017