1.4.0 • Published 1 year ago

snorun v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

snorun

Run & interact with shell command like in node without pain.

Feat

  • Returns true if command exited with code 0 and otherwise false.
  • pipe stdin and stdout and stderr with your main process

Usage

If you like to do this in shell,

echo command && echo succ || echo fail

then you can convert them into javascript

import snorun from "snorun";

const result =
  ((await snorun("echo command")) && (await snorun("echo succ"))) || (await snorun("echo fail"));

// result = true

// and your console will show like this
// > command
// > succ

About

License

GPLv3 - The GNU General Public License v3.0 - GNU Project - Free Software Foundation

Author

Author: snomiao snomiao@gmail.com Website: snomiao.com

Sponsors

  • None yet.

Claim your sponsorship by donating snomiao <Email: snomiao@gmail.com>

Contribute

The main repo is in here, any issue and PR's welcome.

1.4.0

1 year ago

1.1.17

3 years ago

1.1.15

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.9

3 years ago

1.1.6

3 years ago

1.1.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago