@t94j0/queryparse

2.0.1 • Public • Published

query

Parses query parameters into an object with keys of the query parameter keys and values of the query paramter values

How to use

If you are using ES6 import/export syntax:

import parser from '@t94j0/queryparse';
const data = "?test=123&memes=here we go";
parser(data);

{ test: "123", memes: "here we go" }

If you are using RequireJS syntax:

const parser = require('@t94j0/queryparse');
const data = "?test=123&memes=here we go";
parser(data);

{ test: "123", memes: "here we go" }

Readme

Keywords

none

Package Sidebar

Install

npm i @t94j0/queryparse

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

2.11 kB

Total Files

5

Last publish

Collaborators

  • t94j0