Need advice about which tool to choose?Ask the StackShare community!

Nightmare.js

11
26
+ 1
0
Puppeteer

437
547
+ 1
26
Add tool
Advice on Nightmare.js and Puppeteer
Ankur Loriya
Needs advice
on
PhantomJSPhantomJS
and
PuppeteerPuppeteer

I am using Node 12 for server scripting and have a function to generate PDF and send it to a browser. Currently, we are using PhantomJS to generate a PDF. Some web post shows that we can achieve PDF generation using Puppeteer. I was a bit confused. Should we move to puppeteerJS? Which one is better with NodeJS for generating PDF?

See more
Replies (2)
Recommends
on
PuppeteerPuppeteer

You better go with puppeteer. It is basically chrome automation tool, written in nodejs. So what you get is PDF, generated by chrome itself. I guess there is hardly better PDF generation tool for the web. Phantomjs is already more or less outdated as technology. It uses some old webkit port that's quite behind in terms of standards and features. It can be replaced with puppeteer for every single task.

See more
Recommends
on
PuppeteerPuppeteer

I suggest puppeteer to go for. It is simple and easy to set up. Only limitaiton is it can be used only for chrome browser and currently they are looking into expanding into FF. The next thing is Playwright which is just a scale up of Puppeteer. It supports cross browsers.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Nightmare.js
Pros of Puppeteer
    Be the first to leave a pro
    • 10
      Very well documented
    • 10
      Scriptable web browser
    • 6
      Promise based

    Sign up to add or upvote prosMake informed product decisions

    Cons of Nightmare.js
    Cons of Puppeteer
      Be the first to leave a con
      • 10
        Chrome only

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is Nightmare.js?

      It is a high-level browser automation library. It lets you simplify deeply nested callbacks into a few sequential statements. Its goal is to expose a few simple methods that mimic user actions.

      What is Puppeteer?

      Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.

      Need advice about which tool to choose?Ask the StackShare community!

      Jobs that mention Nightmare.js and Puppeteer as a desired skillset
      CBRE
      United States of America Texas Richardson
      What companies use Nightmare.js?
      What companies use Puppeteer?
      See which teams inside your own company are using Nightmare.js or Puppeteer.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Nightmare.js?
      What tools integrate with Puppeteer?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to Nightmare.js and Puppeteer?
      PhantomJS
      PhantomJS is a headless WebKit scriptable with JavaScript. It is used by hundreds of developers and dozens of organizations for web-related development workflow.
      Modernizr
      It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.
      Modernizr
      It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.
      Lodash
      A JavaScript utility library delivering consistency, modularity, performance, & extras. It provides utility functions for common programming tasks using the functional programming paradigm.
      Moment.js
      A javascript date library for parsing, validating, manipulating, and formatting dates.
      See all alternatives