Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexanderwallin/comeondo
A utility to chain commands using spawn and promises
https://github.com/alexanderwallin/comeondo
Last synced: 4 days ago
JSON representation
A utility to chain commands using spawn and promises
- Host: GitHub
- URL: https://github.com/alexanderwallin/comeondo
- Owner: alexanderwallin
- Created: 2015-12-03T09:32:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-16T09:16:35.000Z (almost 9 years ago)
- Last Synced: 2024-10-31T09:36:29.582Z (15 days ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![view on npm](http://img.shields.io/npm/v/comeondo.svg)](https://www.npmjs.org/package/comeondo)
[![Dependency Status](https://david-dm.org/alexanderwallin/comeondo.svg)](https://david-dm.org/alexanderwallin/comeondo)# comeondo
**comeondo** is a basic utility for chaining asynchronous commands in node.js. It runs commands using `spawn` and promises.
### Features
* Chains asynchronous commands in promises
* Captures user input if prompted
* Outputs feedback using [loglady](https://github.com/alexanderwallin/loglady)## Installation
```bash
npm install comeondo
```## Usage
```javascript
const comeondo = require('comeondo');comeonedo.exec('pwd');
// -> "/Users/myname/path/to/current/dir"const path = require('path');
comeondo.run([
'cp README.md README-copy.md',
'rm README.md'
] {
cwd: path.resolve(__dirname, '..', 'siblingDir'),
}).then(() => {
// Commands have run, let's do stuff
});
```