Open kevva opened 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 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.
I'm super excited we can finally get rid of PhantomJS! 🙌
Now uses async/await
. Some tests are still failing though.
By the way, should we consider renaming this to screenshot
instead of screenshot-stream
, it's not a stream anymore :p.
By the way, should we consider renaming this to
screenshot
instead ofscreenshot-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.
Added a PR to Puppeteer to make injecting js and css much easier. https://github.com/GoogleChrome/puppeteer/pull/996
What's left to do here?
Probably some small things to edge out. I'll take a look in the weekend.
Any news on this? I'd rather not have to fork to get around some PhantomJS wonkiness.
I can help with this if needed!
@cluk3 Help is most welcome. Open a PR based on this one. I'll review ;)
Probably still needs some work:
script
optionstyle
optionpage
frompuppeteer
to userskeepAlive
option with a.close
method on the returned promise that lets users kill it manually (good when capturing many pages).