# ninja-knife

Latest version **1.0.1** (published 2022-03-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install ninja-knife
pnpm add ninja-knife
yarn add ninja-knife
bun add ninja-knife
```

Provides the command `ninja`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-03-03 |
| First published | 2022-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | naguangqing |
| Maintainers | nick.na |

## Links

- npm: https://www.npmjs.com/package/ninja-knife
- Repository: https://github.com/nagq/ninja
- Homepage: https://github.com/nagq/ninja#readme
- Issues: https://github.com/nagq/ninja/issues
- npm.io page: https://npm.io/package/ninja-knife

## Dependencies (7)

- [open](https://npm.io/package/open.md) ^8.2.0
- [chalk](https://npm.io/package/chalk.md) ^4.0.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.1.0
- [commander](https://npm.io/package/commander.md) ^7.2.0
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.0.2
- [semantic-release](https://npm.io/package/semantic-release.md) ^19.0.2

## Recent versions

- 1.0.1 (latest) — 2022-03-03
- 1.0.0 — 2022-03-02

## README

# ninja cli


## ninja branch

`npm install -g ninja-knife`

在一个git项目中运行 `ninja branch`, 命令会检查 `.git` 文件夹下是否有 `ninja-config.json`文件。

若没有则会创建文件，格式如下:

```js
{
    "config": {
    },
    "data": [
        {
            "branch": "main",
            "title": "主分支"
        },
        {
            "branch": "release",
            "title": "发布分支，提交中带feat,fix会触发发布"
        },
        {
            "branch": "test",
            "title": "测试分支",
            "hide": true
        }
    ]
}

```

若存在则会显示分支及备注

```
bash# ninja branch
* main               主分支
  release            发布分支，提交中带feat,fix会触发发布
```

```
ninja branch:  创建配置文件，或者显示分支及备注
    -a 显示全部，包括 hide:true
    -o 打开配置文件
```

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