# auto-cli

> CLI arguments based on filename extension

Latest version **0.1.1** (published 2015-08-27) · 0 weekly downloads

## Install

```sh
npm install auto-cli
pnpm add auto-cli
yarn add auto-cli
bun add auto-cli
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-08-27 |
| First published | 2015-08-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | brillout |
| Keywords | command line |

## Links

- npm: https://www.npmjs.com/package/auto-cli
- Repository: https://github.com/brillout/node-auto-cli
- Homepage: https://github.com/brillout/node-auto-cli#readme
- Issues: https://github.com/brillout/node-auto-cli/issues
- npm.io page: https://npm.io/package/auto-cli

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^5.0.14
- [bluebird](https://npm.io/package/bluebird.md) ^2.9.34

## Recent versions

- 0.1.1 (latest) — 2015-08-27

## README

### Usage

```shell
$ npm install auto-cli
```

```shell
$ cat cli.js 
var auto_cli = require('auto-cli');

auto_cli(['html', '--verbose'])
.then(function( input ){
    console.log( input );
});
```

```shell
$ node cli.js 404.html --verbose
{ html: '404.html', '--verbose': true }
```

Arguments are determined base on ".html" filename extension and option name "--verbose".<br>
Argument order does not matter.
```shell
$ node cli.js --verbose 404.html  
{ html: '404.html', '--verbose': true }
```

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