{"id":20073522,"url":"https://github.com/ragingwind/exec-then","last_synced_at":"2025-05-05T21:30:51.368Z","repository":{"id":27323987,"uuid":"30798424","full_name":"ragingwind/exec-then","owner":"ragingwind","description":"child process execute with promise","archived":false,"fork":false,"pushed_at":"2015-02-19T03:57:28.000Z","size":176,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T08:01:50.612Z","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/ragingwind.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":"2015-02-14T14:16:52.000Z","updated_at":"2016-03-24T01:36:33.000Z","dependencies_parsed_at":"2022-07-24T14:47:03.592Z","dependency_job_id":null,"html_url":"https://github.com/ragingwind/exec-then","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fexec-then","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fexec-then/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fexec-then/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fexec-then/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/exec-then/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579993,"owners_count":21771248,"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-13T14:46:38.647Z","updated_at":"2025-05-05T21:30:50.984Z","avatar_url":"https://github.com/ragingwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image]\n\n\u003e Child process execute with promise, deferred\n\n\n## Install\n\n```sh\n$ npm install --save exec-then\n```\n\n\n## Usage\n\n```js\nvar exec = require('exec-then');\n\nexec('pwd').then(function(res) {\n  assert(res.stdout.indexOf(path.resolve(__dirname, '../')) !== -1);\n}, function(err) {\n  console.log(err.toString());\n  assert(false);\n});\n\nexec(['ls', '-al'], function(std, deferred) {\n  if (std.stdout.indexOf('test') === -1) {\n    return deferred.reject();\n  }\n  return true;\n}).then(function(res) {\n  if (res) {\n    console.log('You have test file');\n  }\n}, function() {\n  console.log('Where am I?');\n});\n```\n\n## Options\n\n`exec-node` using same options to [Child Process options](http://goo.gl/axu96) except to options below.\n\n- `verbose`: show stdio/stderr message while child process is running.\n\n## License\n\nMIT © [ragingwind](http://ragingwind.me)\n\n\n[npm-url]: https://npmjs.org/package/exec-then\n[npm-image]: https://badge.fury.io/js/exec-then.svg\n[travis-url]: https://travis-ci.org/ragingwind/exec-then\n[travis-image]: https://travis-ci.org/ragingwind/exec-then.svg?branch=master\n[daviddm-url]: https://david-dm.org/ragingwind/exec-then.svg?theme=shields.io\n[daviddm-image]: https://david-dm.org/ragingwind/exec-then\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fexec-then","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fexec-then","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fexec-then/lists"}