# cliify

> very simple CLI authoring

Latest version **1.0.2** (published 2015-07-02) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2015-07-02 |
| First published | 2015-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jake Rigby |
| Maintainers | wigby |

## Links

- npm: https://www.npmjs.com/package/cliify
- Repository: https://github.com/jake-rigby/cliify
- Issues: https://github.com/jake-rigby/cliify/issues
- npm.io page: https://npm.io/package/cliify

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^1.0.0
- [yargs](https://npm.io/package/yargs.md) ^3.13.0

## Recent versions

- 1.0.2 (latest) — 2015-07-02
- 1.0.1 — 2015-07-02

## README

# cliify
very simple CLI authoring



## use

package.json :

    "bin": {
      "mycli": "index.js"
    }

index.js or whatever : (remember to add a shebang)

    #! /usr/bin/env node
    
    require('cliify').export(function (arg0, cb) {
      cb(null, 'world');
    })

the standard callback prints the error and the result :

$ mycli hello

SUCCESS:  undefined hello world

multiple methods:

    require('cliify').export({
      one: function (arg0, cb) {
        cb(null, arg0+' method one');
      },
      two: function (cb) {
        cb(null, 'method two');
      }
    })

alternative callback :

    var cliify = require('cliify');
    
    cliify.export(function () {
      cliify.cb(null, arguments);  
    });

$ mycli one two three
SUCCESS:  undefined { '0': 'one', '1': 'two', '2': 'three', '3': [Function] }

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