{"id":15063489,"url":"https://github.com/nullrefexcep/gulp-casperjs","last_synced_at":"2025-08-08T23:29:42.621Z","repository":{"id":22751201,"uuid":"26096627","full_name":"NullRefExcep/gulp-casperjs","owner":"NullRefExcep","description":"gulp plugin for CasperJS","archived":false,"fork":false,"pushed_at":"2018-02-14T00:19:08.000Z","size":16,"stargazers_count":12,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T09:53:00.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullRefExcep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-02T23:35:23.000Z","updated_at":"2022-01-29T08:44:10.000Z","dependencies_parsed_at":"2022-07-27T03:32:06.497Z","dependency_job_id":null,"html_url":"https://github.com/NullRefExcep/gulp-casperjs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fgulp-casperjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fgulp-casperjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fgulp-casperjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fgulp-casperjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullRefExcep","download_url":"https://codeload.github.com/NullRefExcep/gulp-casperjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208559,"owners_count":21065202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T23:58:25.171Z","updated_at":"2025-04-10T11:10:28.979Z","avatar_url":"https://github.com/NullRefExcep.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-casperjs\n\nA [gulp](https://github.com/gulpjs/gulp) plugin for running [CasperJS](https://github.com/n1k0/casperjs) scripts\n\n## Install\n\n```\nnpm install --save-dev gulp-casperjs\n```\n\n## Usages\n\n```js\nvar casperJs = require('gulp-casperjs');\ngulp.task('test', function () {\n  gulp.src('Globs of test files')\n    .pipe(casperJs()); //run casperjs test\n});\n```\n\nTo change the command (default: `test`) use parameter `command`:\n\n```js\nvar casperJs = require('gulp-casperjs');\ngulp.task('casperCmd', function () {\n  gulp.src('test.js')\n    .pipe(casperJs({command:''})); //run casperjs test.js\n});\n```\n\nCommand can be `array` or `string`.\nIf command has value which cast to `false`, this parameter will be ignored.\n\nTo set custom path to CasperJS use parameter `binPath`:\n\n```js\nvar casperJs = require('gulp-casperjs');\ngulp.task('test', function () {\n  gulp.src('test.js')\n    .pipe(casperJs({binPath: './node_modules/casperjs/bin/casperjs'})); //custom path to CasperJs\n});\n```\n\nDefault is `casperjs` (global)\n\n\n## Options\n\nIt is possible to pass casperjs options via main options object.\n\n```js\nvar casperJs = require('gulp-casperjs');\ngulp.task('casperCmd', function () {\n  const options = {\n    logLevel: 'debug',\n    includes: 'node_modules/package/index.js,node_modules/pacakge2/index.js',\n    webSecurity: 'no'\n  };\n  gulp.src('test.js')\n    .pipe(casperJs(options)); //run casperjs test.js\n});\n```\n\nOptions are documented in official CasperJS documentation http://docs.casperjs.org\nPossible values are\n\n| Option      | Parameter Name | Possible Values                       |\n|-------------|----------------|---------------------------------------|\n| concise     | --concise      |                                       |\n| engine      | --engine       | [phantomjs \\| slimerjs]               |\n| failFast    | --fail-fast    |                                       |\n| includes    | --includes     | `\u003cfilename\u003e,\u003cfilename\u003e`               |\n| logLevel    | --log-level    | `[debug \\| info \\| warning \\| error]` |\n| noColors    | --no-colors    |                                       |\n| post        | --post         | `\u003cfilename\u003e`                          |\n| pre         | --pre          | `\u003cfilename\u003e`                          |\n| webSecurity | --web-security | no                                    |\n| xunit       | --xunit        | `\u003cfilename\u003e`                          |\n\n\n\n\n## LICENSE\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fgulp-casperjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullrefexcep%2Fgulp-casperjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fgulp-casperjs/lists"}