@helb/script-url
v1.0.0
Published
Gets URL of currently running script.
Downloads
204
Readme
script-url
Gets URL of currently running script (browser only) as a string.
Usage
import scriptUrl from "@helb/script-url";
console.log(scriptUrl()) // -> eg. "http://localhost:3000/script.js"