0.1.1 • Published 4 years ago

lc-query-string v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

lc-query-string

A npm package use for url string query parse and compose.

parse

Parse a string with or without leading ? url string. Return a JSON object. Warning: It would not test passing string is a valid query string or not.

const queryLib = require('lc-query-string');

// if you don't pass anything,
// it will try to parse window.location.search,
// if it dose not exist, it will return empty object.
queryLib.parse();

// should be {page: '1', pageSize: '10'}
queryLib.parse('?page=1&pageSize=10');
0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago