@helb/script-url

1.0.0 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i @helb/script-url

Weekly Downloads

12

Version

1.0.0

License

WTFPL

Unpacked Size

1.45 kB

Total Files

3

Last publish

Collaborators

  • helb