# gulp-casperjs-options

> Gulp plugin for running CasperJS scripts with options

Latest version **0.0.1** (published 2015-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-casperjs-options
pnpm add gulp-casperjs-options
yarn add gulp-casperjs-options
bun add gulp-casperjs-options
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-02-12 |
| First published | 2015-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matt Walker |
| Maintainers | zammer |
| Keywords | gulp, gulpplugin, casperjs |

## Links

- npm: https://www.npmjs.com/package/gulp-casperjs-options
- Repository: https://github.com/zammer/gulp-casperjs
- Issues: https://github.com/zammer/gulp-casperjs/issues
- npm.io page: https://npm.io/package/gulp-casperjs-options

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) *
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.1

## Recent versions

- 0.0.1 (latest) — 2015-02-12

## README

# gulp-casperjs-options
## Forked from original [gulp-casperjs](https://github.com/NullRefExcep/gulp-casperjs) with minor updates

A [gulp](https://github.com/gulpjs/gulp) plugin for running [CasperJS](https://github.com/n1k0/casperjs) scripts

## Install

```
npm install --save-dev gulp-casperjs-options
```

## Usages

To add logging output option:
```js
var casperJs = require('gulp-casperjs-options');
gulp.task('logTest', function (){
    gulp.src('test.js')
        .pipe(casperjs({
            xunit: 'log.xml'
        }));
});
```

```js
var casperJs = require('gulp-casperjs');
gulp.task('test', function () {
  gulp.src('Globs of test files')
    .pipe(casperJs()); //run casperjs test
});
```
To change the command (default: `test`) use parameter `command`:
```js
var casperJs = require('gulp-casperjs');
gulp.task('casperCmd', function () {
  gulp.src('test.js')
    .pipe(casperJs({command:''})); //run capserjs test.js
});
```
Command can be `array` or `string`.
If command has value which cast to `false`, this parameter will be ignored.

To hide output from CasperJS use parameter `outputLog`:
```js
var casperJs = require('gulp-casperjs');
gulp.task('casperCmd', function () {
  gulp.src('test.js')
    .pipe(casperJs({outputLog: false})); //CasperJS output not show
});
```
Default value is `true`
## LICENSE

The MIT License (MIT)

---
_Source: https://npm.io/package/gulp-casperjs-options · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
