3.0.2 • Published 21 days ago

@winkgroup/cmd v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

cmd

Helper library to manage long running shell commands

Install

npm install @winkgroup/cmd

Usage

import Cmd from '@winkgroup/cmd'

async function go() {
    const ls = await Cmd.run('ls')
    console.log(ls)
    process.exit()
}

go()

this will run ls command on the shell and return the output in ls variable

you can check if a command exists using exists method:

    ...
    const exists = Cmd.exists('ls')
    if (exists) console.log('mongo is a command')
        else console.error('command not found')

Maintainers

3.0.2

21 days ago

3.0.1

10 months ago

3.0.0

11 months ago

2.0.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago