js-query-string-object

0.0.1 • Public • Published

query-string-data

Build Status

A tiny library that helps convert a javascript object into valid query string parameters.

Example Usage

const {queryString} = require('js-query-string-object')
const queryObject = {
  firstName: 'Stephen',
  lastName: 'Kenigbolo'
}
console.log(queryString(queryObject))
 
// expected output -> ?firstName=Stephen&lastName=Kenigbolo

Note

This package was built as a tiny utility to enable query string formatting from javascript objects which are being used as query params for get request. If you require a more extensive use case or robust parameter support kindly make a feature request and lets work together to help you with whatever your request might be.

Package Sidebar

Install

npm i js-query-string-object

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

3.97 kB

Total Files

7

Last publish

Collaborators

  • kenigbolo