0.1.0 • Published 5 years ago

fd-wrapper v0.1.0

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
5 years ago

fd-wrapper

I re-used the same script way too many times.
So why not publish it?

const fdWrapper = require("fd-wrapper");
let fd = new FormData();
fd.set("foo", "bar");
fd.set("123", 456);

let wrapper = fdWrapper(fd);

console.log(wrapper.foo); // bar
console.log(wrapper["123"]); // 456

wrapper.foo = "baz";
console.log(fd.get("foo")); // baz