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

@dogmalang/exec.async

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dogmalang/exec.async

Functions for executing lines from shell, asynchronously.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@dogmalang/exec.async

NPM version Total downloads

Functions for executing lines from shell, asynchronously.

Engineered in Valencia, Spain, EU by Justo Labs.

Use

const {exec, execf, pexec} = require("@dogmalang/exec.async");

exec()

It executes a command:

async function exec(...cmd) : object
async function exec(...cmd, opts:object) : object
  • cmd, the command to run.
  • opts, the options:
    • workDir (string), the work directory to use.
    • env (object), the environment variables to use.
    • detach (bool or number), detach the execution? When a number, this is the milliseconds to wait before returning and detecting an error during this interval.
    • enc (string), the output encoding.

execf()

Similar to exec(), but for a command with format:

async function execf(fmt:string, ...args) : object
async function execf(fmt:string, ...args, opts:object) : object

Keywords

Dogma

FAQs

Package last updated on 25 Jan 2019

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