🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

exude

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exude

Execute the OS specific command.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

exude Build Status

Execute the OS specific command.

Returns a promise which:

  • On success data (array) will have stdout and stderr.
  • On failure data will have Error.
  • Will reach catch on unknown OS or perm issues.

Install

$ npm install --save exude

Usage

let exude = require('exude');

const cmds = {
	'linux': 'ls',
	'osx': 'ls',
	'windows': 'dir'
};

exude(cmds)
	.then(console.log,console.error)
	.catch(function(e){
		console.error('Unknown OS!');
	});

API

exude(cmds)

cmds

Type: object

Must have the requried OS names.

License

MIT © Hemanth.HM

Keywords

windows

FAQs

Package last updated on 07 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts