brainfoolong / form-data-json

A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
https://brainfoolong.github.io/form-data-json
MIT License
57 stars 10 forks source link

NPM Module? #7

Closed cybervaldez closed 3 years ago

cybervaldez commented 3 years ago

Describe the bug There's an npm install in the readme but can not import?

To Reproduce

import FormDataJson from "form-data-json-convert"
const FormDataJson2 = require("form-data-json-convert")

// both returns empty objects
brainfoolong commented 3 years ago

Yes sorry, npm support is currently not finished. Will do that tomorrow.

cybervaldez commented 3 years ago

Awesome! Quite frankly this is the only library out there for converting formdata to nested json.

brainfoolong commented 3 years ago

There are a few older libs with jQuery dependency that do similar stuff. But i wanted a dependency free, modernized handling for such things.

By the way. NPM module should now work, starting with version 1.2.2. Import demo also in the NPM install usage of the Readme.