{"id":19151433,"url":"https://github.com/sc5/exec-wait","last_synced_at":"2025-05-07T05:24:56.380Z","repository":{"id":18383520,"uuid":"21564409","full_name":"SC5/exec-wait","owner":"SC5","description":"A simple promiseful execution utility that waits for input from stdout or a HTTP/HTTPS request to return until giving the control to the next command in the chain.","archived":false,"fork":false,"pushed_at":"2015-12-16T16:53:12.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-26T17:46:41.279Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SC5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-07T09:12:10.000Z","updated_at":"2015-04-18T08:01:55.000Z","dependencies_parsed_at":"2022-07-26T22:16:55.008Z","dependency_job_id":null,"html_url":"https://github.com/SC5/exec-wait","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fexec-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fexec-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fexec-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fexec-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SC5","download_url":"https://codeload.github.com/SC5/exec-wait/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252819654,"owners_count":21809060,"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-11-09T08:14:42.375Z","updated_at":"2025-05-07T05:24:56.351Z","avatar_url":"https://github.com/SC5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exec-wait\n\nA simple promiseful execution utility that waits for input from stdout or a\nHTTP/HTTPS request to return until giving the control to the next command in\nthe chain.\n\nUseful e.g. for test automation process chains etc.\n\n## Installation\n\n    \u003e npm install exec-wait\n\n## Usage\n\n    var ghostDriver = exec({\n      name: 'Ghostdriver',\n      cmd: path.join(require.resolve('phantomjs'), '../phantom/bin',\n        'phantomjs' + (process.platform === 'win32' ? '.exe' : '')),\n      args: ['--webdriver=4444', '--ignore-ssl-errors=true'],\n      monitor: { stdout: 'GhostDriver - Main - running on port 4444' }\n    });\n\n    var cmdAndArgs = require('package.json').scripts.start.split(/\\s/),\n      testServer = exec({\n        name: 'Test server',\n        cmd: cmdAndArgs[0],\n        args: cmdAndArgs.slice(1),\n        monitor: {\n          url: 'http://localhost:8080/',\n          checkHTTPResponse: false\n        },\n        httpOptions: {\n          rejectUnauthorized: false\n        }\n      });\n\n    testServer.start()\n      .then(ghostDriver.start)\n      .then(function() {\n        // Do something\n      })\n      .then(ghostDriver.stop)\n      .then(testServer.stop);\n\nhttpOptions can be used to pass options to http / https modules. e.g. rejectUnauthorized skips certificate validity checks (required for self-signed certificates)\n\n## License\n\nCopyright (c) 2014 [SC5](http://sc5.io/), licensed for users and contributors under MIT license.\nhttps://github.com/sc5/grunt-bobrsass-boilerplate/blob/master/LICENSE-MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fexec-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc5%2Fexec-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fexec-wait/lists"}