Skip to content

urlParameter

Aierse edited this page Oct 18, 2023 · 2 revisions

// JSON makes URL parameter

import JSONExtend from "@aierse/json-extend";

const json = {
    id: "test",
    password: "test",
    phone: "010-1234-5678",
}


// JSON makes URL parameter
// Be careful, It doesn't include ?
const param = JSONExtend.urlParameter(json);
/* id=test&password=test&phone=010-1234-5678 */

Clone this wiki locally