JSPM

  • Created
  • Published
  • Downloads 189980
  • Score
    100M100P100Q169679F
  • License MIT

A convenient client-side JavaScript function to create a FormData instance from the key-value pairs of an Object instance.

Package Exports

  • object-to-formdata

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-to-formdata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

object-to-formdata

A convenient client-side JavaScript function to create a FormData instance from the key-value pairs of an Object instance.

const objectToFormData = require('object-to-formdata')


const object = {
  /**
   * key-value pairs
   * values can be primitives or objects
   */
}

const formData = objectToFormData(object)

console.log(formData)