byeval / query-parser

Just another query parser, write in ES6.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

query-parser

travis-ci Dependency Status npmjs

A smarter query string parser that will convert value in right format(support number, boolean and array), write in ES6.

Install

npm install smart-query-parser

Usage

import parser from 'smart-query-parser'

const link = 'https://google.com/search?q=hello+world&a=1&a=2'
let obj = parser(link)
console.log(obj) // {q: 'hello world', a: [1,2]}

Author

xuhong

License

MIT

About

Just another query parser, write in ES6.

License:MIT License


Languages

Language:JavaScript 100.0%