1.2.4 • Published 5 years ago

libqs v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

libqs

This is a simple object serializer for query strings.

Install

npm i --save libqs

Usage

const QueryString = require('libqs');
const qs = new QueryString();
qs.overwrite({page: 0, limit: 10});
console.log(qs.data);
console.log(qs.json());
console.log(qs.overwrite({username: 'Test'}).build());
<a class="pull-left" href="<%= qs.increase({page: -1}).build() %>">Previous Page</a>
<a class="pull-right" href="<%= qs.increase({page: 1}).build() %>">Next Page</a>

Test

$ npm test
1.2.4

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago