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

2.0.17 • Public • Published

get-url-query

npm version github version

get-url-query is a package for easily convert query to json.

npm i get-url-query
# or
yarn add get-url-query
import getUrlQuery from "get-url-query";

// get query from `location.search`
getUrlQuery();

// get query from `string`
getUrlQuery("http://example.com/?hello=world&hi=joenix");

// expand location
location.query; // { hello: 'world', hi: 'joenix' }

Readme

Keywords

Package Sidebar

Install

npm i get-url-query

Weekly Downloads

27

Version

2.0.17

License

ISC

Unpacked Size

17.7 kB

Total Files

12

Last publish

Collaborators

  • joenix