url-query-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

url-query-utils

Utility functions to handle url-query

Install

npm i url-query-utils

Usage

import {get, parse, set} from 'url-query-utils'

const url = "https://www.google.com/search?q=deno";
parse(url)
// {path: "https://www.google.com/search", params: { q: "deno" }})

get(url, "q")
// "deno"

set(url, {q: "node"})
// https://www.google.com/search?q=node

set(url, {lang: "en"})
// https://www.google.com/search?q=deno&lang=en

Readme

Keywords

none

Package Sidebar

Install

npm i url-query-utils

Weekly Downloads

42

Version

0.0.0

License

MIT

Unpacked Size

5.26 kB

Total Files

13

Last publish

Collaborators

  • ppdx999