@adso-ts/build-query-string
v1.0.4
Published
Transforms an object into an URL query parameters
Downloads
17
Readme
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