0.0.1 • Published 5 years ago

js-query-string-object v0.0.1

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

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.