@adso-ts/build-query-string
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Build query string

Turns an objest into a query param string

Import

import { buildQueryString } from '@adso-ts/build-query-string';

How to use

const obj = {
    from: 1,
    to: 2,
    user: 'test-user',
}

const queryString = buildQueryString(obj);  // result ?from=1&to=2&user=test-user

Package Sidebar

Install

npm i @adso-ts/build-query-string

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

4.52 kB

Total Files

7

Last publish

Collaborators

  • asokolowski