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

Get Stream when HTML is string(not a url) #226

Open
Sachin678 opened this issue Feb 1, 2018 · 1 comment
Open

Get Stream when HTML is string(not a url) #226

Sachin678 opened this issue Feb 1, 2018 · 1 comment

Comments

@Sachin678
Copy link

I have a html string and after creating webshot I want stream object so that I can pipe it to response without creating a file on local. With html url it is working fine but I am creating html at runtime and after that passing it to webshot.

@Lombra
Copy link

Lombra commented Feb 2, 2018

This worked for me:

let stream = webshot(html, {siteType: 'html'})

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

2 participants