# v_execute

> Node Module that only requires a single function call to execute some bash/shell code in a child_process

Latest version **1.1.1** (published 2024-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install v_execute
pnpm add v_execute
yarn add v_execute
bun add v_execute
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2024-01-07 |
| First published | 2021-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | v-core9 |
| Keywords | execute, shell, bash, child_process, node, try/catch, promisify, util, async, v-core9 |

## Links

- npm: https://www.npmjs.com/package/v_execute
- Repository: https://github.com/V-tech-tools/v_execute
- Homepage: https://github.com/V-tech-tools/v_execute#readme
- Issues: https://github.com/V-tech-tools/v_execute/issues
- npm.io page: https://npm.io/package/v_execute

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2024-01-07
- 1.1.0 — 2024-01-07
- 1.0.3 — 2022-04-21
- 1.0.2 — 2022-03-28
- 1.0.1 — 2021-12-18
- 1.0.0 — 2021-11-16

## README

# 🌀 **v_execute(** <\_command\_> **)**

> Node Module that only requires a single function call to execute some bash/shell code in a child_process

## ⏩ Installing\_\_

    npm i v_execute --save

## 💥 How to use\_\_

Well just load it as a constant...and have fun...

### Common JS

```js
  const { v_execute, hof_v_cp } = require('./v_execute')

  // Simple listing
  console.log( await v_execute("ls") ) //-> { stdout, stderr }

  // Check git status
  console.log( await v_execute("git status") )
  
  
  // Create a child_process
  const cp = hof_v_cp(
    undefined, 
    (data)=> console.log(data),  // stdout.on('data', cbFn)
    (data) => console.warn(data) // stderr.on('data', cbFn)
  )

  cp.runCmd("ls")
  cp.sendCommand("ls")

  console.log(cp.child) //-> child_process instance
```

### ES Modules

```js
  import { v_execute, hof_v_cp } from 'v_execute'
  
  // Simple listing
  console.log( await v_execute("ls") ) //-> { stdout, stderr }

  // Check git status
  console.log( await v_execute("git status") )
  
  // Create a child_process
  const cp = hof_v_cp(
    undefined, 
    (data)=> console.log(data),  // stdout.on('data', cbFn)
    (data) => console.warn(data) // stderr.on('data', cbFn)
  )

  cp.runCmd("ls")
  cp.sendCommand("ls")

  console.log(cp.child) //-> child_process instance
```

---

### 👻 Author: **-<[\_.⟁.\_]>-**

### ⏰ CreatedTime: 07.01.2023 @ 15:44

---
_Source: https://npm.io/package/v_execute · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
