Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this work with a URL? #22

Open
shamoons opened this issue May 3, 2020 · 2 comments
Open

Will this work with a URL? #22

shamoons opened this issue May 3, 2020 · 2 comments

Comments

@shamoons
Copy link

shamoons commented May 3, 2020

No description provided.

@zeke
Copy link
Member

zeke commented May 3, 2020

No, but that's a cool idea. I'd consider a PR to add support for this, or it could be a good candidate for a new standalone npm packages

@noudadrichem
Copy link

I used axios and this function:

public async getBufferFromURL(url: string): Buffer {
        try {
            const request = await axios.get(url, {
                responseType: "arraybuffer",
            });
            return new Buffer(request.data);
        } catch (err) {
            throw err;
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants