querystring-ts
v1.0.1
Published
Converts an object you supply into a nice querystring
Downloads
139
Maintainers
Readme
querystring-ts
Creates a querystring depending on what you input
Examples
import { stringify } from "querystring-ts";
import fetch from "node-fetch";
const querystring = stringify({
src: "master",
q: "MessageEmbed",
force: false,
});
// returns: src=master&?q=MessageEmbed&?force=false
Usages
| Parameters | Type | Default | Optional | | :--------: | :----: | :-----: | :------: | | query | object | none | false | | seperator | string | "&" | true | | equal | string | "=" | true |