What version of this package are you using?
latest
What operating system, Node.js, and npm version?
macos, node 12, npm latest
What happened?
Following https://developer.mozilla.org/en-US/docs/Web/API/File/File I created as an example the File object as its described in the example:
var file = new File(["foo"], "foo.txt", {
type: "text/plain",
});
then try to create a torrent using the provided example:
createTorrent([file], { name: "whatever" } (err, torrent) => {});
What did you expect to happen?
That createTorrent could identify File objects as expected and create the .torrent
Are you willing to submit a pull request to fix this bug?
I don't feel I have enough knowledge to know what to touch, but reach me out!
What version of this package are you using? latest What operating system, Node.js, and npm version? macos, node 12, npm latest What happened? Following https://developer.mozilla.org/en-US/docs/Web/API/File/File I created as an example the File object as its described in the example:
then try to create a torrent using the provided example:
createTorrent([file], { name: "whatever" } (err, torrent) => {});
What did you expect to happen? That createTorrent could identify File objects as expected and create the .torrent
Are you willing to submit a pull request to fix this bug? I don't feel I have enough knowledge to know what to touch, but reach me out!