kevva / screenshot-stream

Capture screenshot of a website and return it as a stream
MIT License
236 stars 38 forks source link

Replace PhantomJS with Puppeteer #46

Open kevva opened 7 years ago

kevva commented 7 years ago

Probably still needs some work:

sindresorhus commented 7 years ago

@kevva What do you think about targeting Node.js 8? So we can use async/await. Would be so much nicer. It's going to be a major release anyway. I plan to do that in the next major of Pageres.

kevva commented 7 years ago

@kevva What do you think about targeting Node.js 8? So we can use async/await. Would be so much nicer. It's going to be a major release anyway. I plan to do that in the next major of Pageres.

👍 I agree. And it would be pretty future proof for a foreseeable future.

sindresorhus commented 7 years ago

I'm super excited we can finally get rid of PhantomJS! 🙌

kevva commented 7 years ago

Now uses async/await. Some tests are still failing though.

SamVerschueren commented 7 years ago

By the way, should we consider renaming this to screenshot instead of screenshot-stream, it's not a stream anymore :p.

kevva commented 7 years ago

By the way, should we consider renaming this to screenshot instead of screenshot-stream, it's not a stream anymore :p.

If we can get the name, yes. But it hasn't been updated in five years so shouldn't be impossible.

SamVerschueren commented 7 years ago

Added a PR to Puppeteer to make injecting js and css much easier. https://github.com/GoogleChrome/puppeteer/pull/996

sindresorhus commented 6 years ago

What's left to do here?

kevva commented 6 years ago

Probably some small things to edge out. I'll take a look in the weekend.

c0bra commented 6 years ago

Any news on this? I'd rather not have to fork to get around some PhantomJS wonkiness.

cluk3 commented 6 years ago

I can help with this if needed!

sindresorhus commented 6 years ago

@cluk3 Help is most welcome. Open a PR based on this one. I'll review ;)