makestatic-audit-files

1.0.10 • Public • Published

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

Package Sidebar

Install

npm i makestatic-audit-files

Weekly Downloads

2

Version

1.0.10

License

MIT

Last publish

Collaborators

  • tmpfs