JSPM

html-script-hook

0.7.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 217
  • Score
    100M100P100Q90157F
  • License MIT

For each local <script> tag, calls a callback and replaces the script code with the result

Package Exports

  • html-script-hook

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (html-script-hook) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Calls back a function with each <script> tag found in a HTML file. To leave the code exactly the same, simply callback with the same argument that was passed in.

Originally for Code Coverage with Istanbul.

Can also support other tools that would want to have access to or modify the