Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nightmare-examples

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nightmare-examples

Examples for common Nightmare usage

  • 0.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

nightmare-examples

This project contains supplementary examples and documentation for Nightmare JS.

Documentation

Getting Started

New to Nightmare? The most basic way to use it is with promises or callbacks. Here are a few examples:

Nightmare and Generators

Several JavaScript libraries use generators to give you a simpler way to deal with asynchronous events. Here’s how to use Nightmare with some of them:

Extending Nightmare

Nightmare may not do everything out of the box that you need it to do.

  • .action() - Look here if adding a method that does a specific activity in the browser.
  • .use() - Wrap several actions up for reusability in one tidy place.

Common Pitfalls

Working with an automated web browser can be complex. Here are a few common gotchas and issues you might run into while working with Nightmare:

Known Issues

Here are some known problems with Nightmare:

Examples

All pages above have accompanying scripts you can actually run. To get started, you’ll need to make sure you install their dependencies first by running npm install.

After that, all the examples are runnable using node [example].

Additions and Corrections

If something has been missed, needs correcting, or you have a question, feel free to open an issue or pull request.

Keywords

FAQs

Package last updated on 05 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc