1.0.9 • Published 7 months ago

@dintero/sri-to-dist v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

sri-to-dist

Actions StatusActions Statusnpm latest version

A tool to add subresource integrity (SRI) hashes to HTML files.

Installation

npm install -g @dintero/sri-to-dist
# or
npx @dintero/sri-to-dist

Usage

sri-to-dist -i input.html -o output.html
sri-to-dist --input input.html --output output.html --base-url https://example.com

Options

  • -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 testing

Now you can run:

sri-to-dist -i test.html

Step 9: Publish to npm

npm login
npm publish

Creating a new release

  1. Enforce all commits to the master branch to be formatted according to the Angular Commit Message Format
  2. When merged to master, it will automatically be released with semantic-release
1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago