brainfoolong / form-data-json

A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.

Home Page:https://brainfoolong.github.io/form-data-json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `import` instead of `require`

KES777 opened this issue · comments

Is your feature request related to a problem? Please describe.

import { FormDataJson as FormDataJson } from "form-data-json-convert/dist/form-data-json";

After this line of code FormDataJson stays undefined. Is this supported?

Describe the solution you'd like
Support modern way of module loading.

Hi. import is not supported, as FormDataJson is not a ES6 module.

Thank you very much!