get-current-script

Get the currently executing script in the browser.

Usage no npm install needed!

<script type="module">
  import getCurrentScript from 'https://cdn.skypack.dev/get-current-script';
</script>

README

getCurrentScript

Get the currently executing script in the browser.

var currentScript = require('getCurrentScript')();