New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-casperjs-local

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-casperjs-local

Gulp plugin for running CasperJS scripts

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-casperjs-local

Fork of gulp-casperjs, but uses the local installation of casper (i.e. the one in your node_modules).

npm install --save-dev gulp-casperjs-local casperjs phantomjs

Original Docs (Modified)

A gulp plugin for running CasperJS scripts

Usages

import casperJs from 'gulp-casperjs-local';
// or
const casperJs = require('gulp-casperjs-local').default;

gulp.task('test', function () {
  gulp.src('Globs of test files')
    .pipe(casperJs()); // run casperjs test
});

To change the command (default: test) use parameter command:

import casperJs from 'gulp-casperjs-local';
gulp.task('casperCmd', function () {
  gulp.src('test.js')
    .pipe(casperJs({ command: '', envArgs { TZ: 'UTC' } })); // run casperjs test.js
});

Command can be array or string. If command has value which cast to false, this parameter will be ignored.

envArgs is an object of environment variables that will be passed to casper.

LICENSE

The MIT License (MIT)

Keywords

FAQs

Package last updated on 16 Jun 2016

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