# kmdor

> a tool to use shel common by js

Latest version **1.0.9** (published 2021-09-03) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2021-09-03 |
| First published | 2019-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kfdykme |

## Links

- npm: https://www.npmjs.com/package/kmdor
- npm.io page: https://npm.io/package/kmdor

## Recent versions

- 1.0.9 (latest) — 2021-09-03
- 1.0.8 — 2021-09-03
- 1.0.7 — 2021-09-03
- 1.0.6 — 2019-05-21
- 1.0.4 — 2019-04-04
- 1.0.3 — 2019-04-04
- 1.0.2 — 2019-04-04
- 1.0.1 — 2019-04-04
- 1.0.0 — 2019-04-04

## README

# Kmdor

This is a tool you can use shell command by js.


## example

``` javascript
const kmdor = require('kmdor')

kmdor.Do(['ls', 'ls -a'], './', function () {
  console.info('end function ')
})

```

## Methods

### Do

```
/**
 * @method Do
 * @param {array} obj 一个结构为['命令', [' 第二个命令', ['第三个命令']]]　的数组 或者 ['cmd', 'cmd2', 'cmd3']
 * @param {string} cwd　运行命令的当前目录
 * @param {function} doOnEnd　运行结束后所进行的操作
 */
```

### init

```

/**
 * @method
 * @param {function} log 非必选 , 如果为空则使用console.info 和 console.error
 * @param {function} err 非必选 , 如果为空则与log相同
 */
```

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