JSPM

js-query-string-object

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q12360F
  • License MIT

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

Package Exports

  • js-query-string-object

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-query-string-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.