# re-sheller.js

> The short solution for node.js command-line interfaces

Latest version **1.0.0** (published 2020-11-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install re-sheller.js
pnpm add re-sheller.js
yarn add re-sheller.js
bun add re-sheller.js
```

## 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.0 |
| Published | 2020-11-20 |
| First published | 2020-11-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | regaliastar |
| Maintainers | regaliastar |

## Links

- npm: https://www.npmjs.com/package/re-sheller.js
- npm.io page: https://npm.io/package/re-sheller.js

## Recent versions

- 1.0.0 (latest) — 2020-11-20

## README

# Sheller.js
解析命令行的简化方案，灵感来自 [Commander](https://github.com/tj/commander.js)

## Install
```
npm install Sheller.js
```
## Quick start
```
// see test.js
const _package = require('./package.json')
const { Sheller } = require('Sheller.js')

const sheller = new Sheller()

sheller
    .version(_package.version)
    .name('app')
    .usage('[options]')
    .setCmdHeader('app')
    .option('-s', 'save info', () => {
        console.log('in hook func -s')
    })
    .option('-q', 'quit system', () => {
        console.log('in hook func -q')
    })
    .option('-h', 'help info', () => {
        console.log('in hook func -h')
    })

sheller.parse('app -h -s', {from: 'user'})
```

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