New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simple-cmd

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-cmd

Tiny library to run and view cli commands from node

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Simple Cmd

Tiny library to run and view cli commands from node

Note: Due to a cwd constaint some commands might written slightly different. For Example: grep -rn install *' will error, but grep -rn install .` will work.

Async example

const {run} = require('simple-cmd');

const runAsync = async () => {
  try {
    await run('grep -rn install .');
    console.log('Grepped!')
  } catch(error) {
    console.error(error)
  }
};

runAsync();

Promise example

const {run} = require('simple-cmd');

run('grep -rn install .').then(() => {
  console.log('Grepped!')
});

Simple example

const {run} = require('simple-cmd');

run('grep -rn install .', () => {
  console.log('Grepped!')
});

Keywords

exec

FAQs

Package last updated on 14 Jul 2021

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