gavinhungry / prawner

Spawn shell commands with Promises

Home Page:https://www.npmjs.com/package/prawner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prawner

Spawn shell commands with Promises.

Installation

$ npm install prawner

Usage

const prawner = require('prawner');

await prawner('uname -sm'); // 'Linux x86_64'

await prawner('foobar').catch(err => {
  // Error: '/bin/sh: foobar: command not found'
});

License

This software is released under the terms of the MIT license. See LICENSE.

About

Spawn shell commands with Promises

https://www.npmjs.com/package/prawner

License:MIT License


Languages

Language:JavaScript 100.0%