json-to-form-data

1.0.0 • Public • Published

json-to-form-data

JSON to FormData

npm install --save json-to-form-data
const jtfd = require("json-to-form-data");
 
const jsonData = {
    bla: "123",
    list: ["456", "789"]
};
 
const formDataString = jtfd(jsonData);
console.log(formDataString); //logs: bla=123&list=456&list=789

Package Sidebar

Install

npm i json-to-form-data

Weekly Downloads

166

Version

1.0.0

License

MIT

Last publish

Collaborators

  • krystianity