UNPKG

promised-exec

Version:

Promised execution of terminal command.

13 lines (9 loc) 230 B
var module, promise; module = require('./index.js'); promise = module('git ls-remote'); promise.then(function () { console.log('succeed', arguments); }); promise.catch(function () { console.log('error', arguments); });