1.0.9 • Published 7 months ago
@dintero/sri-to-dist v1.0.9
sri-to-dist
A tool to add subresource integrity (SRI) hashes to HTML files.
Installation
npm install -g @dintero/sri-to-dist
# or
npx @dintero/sri-to-distUsage
sri-to-dist -i input.html -o output.html
sri-to-dist --input input.html --output output.html --base-url https://example.comOptions
-i, --input <file>: Input HTML file (required)-o, --output <file>: Output HTML file (optional, defaults to stdout)-b, --base-url <url>: Base URL for resolving relative paths (optional)-n, --no-remote <url>: Optional flag, no remote sri files allowed-v, --verify <url>: Optional flag, verify that all sri resources from input have correct sha384 hashes
License
MIT
Security
Contact us at security@dintero.com
Step 8: Build and test locally
npm install
npm run build
npm run test
npm link # This makes your package available globally for testingNow you can run:
sri-to-dist -i test.htmlStep 9: Publish to npm
npm login
npm publishCreating a new release
- Enforce all commits to the master branch to be formatted according to the Angular Commit Message Format
- When merged to master, it will automatically be released with semantic-release