@tomsd/urlquery
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@tomsd/urlquery

Installation

npm install @tomsd/urlquery

Usage

// with bundler
import query from "@tomsd/urlquery";
// http://localhost/whatever.html?abc=def&ghi=jkl as url for example
const myQuery = query.activate();

myQuery.names.forEach((name) => {
  console.log(name);
}); // abc, ghi

console.log(myQuery.get("abc")); // "def"

console.log(myQuery.get("ghi")); // "jkl"

console.log(myQuery.get("xyz")); // ""

/@tomsd/urlquery/

    Package Sidebar

    Install

    npm i @tomsd/urlquery

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    74.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • tomsd