JSPM

just-get-query

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q23435F
  • License MIT

get url query.

Package Exports

  • just-get-query

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (just-get-query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

just-get-query

get url query.

import getQuery from 'just-get-query';

let url = location.search; // https://just-do.io?hello=hello&world=world

getQuery('just'); // null
getQuery('hello'); // hello
getQuery('world'); // world