# cmdfu

> Command-line options parser for NodeJS functions

Latest version **0.0.2** (published 2017-10-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-10-10 |
| First published | 2017-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jared Abbott |
| Maintainers | abbotto |
| Keywords | nodejs, bash, shell, terminal, console |

## Links

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

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-10-10
- 0.0.1 — 2017-10-09

## README

# Command-line options parser for NodeJS functions


## Package Information
[![NPM version](https://badge.fury.io/js/cmdfu.svg)](http://badge.fury.io/js/cmdfu)
[![GitHub version](https://badge.fury.io/gh/abbotto%2Fcmdfu.svg)](https://badge.fury.io/gh/abbotto%2Fcmdfu)

## Usage

Write flexible scripts that can be called in multiple ways:

	const fu = require('cmdfu');
	const sh = require('shellcmd');
	const myObject = { who: { am: {}}};
	
	myObject.who.am.i = () => {
		console.log('You are:');
		sh('whoami');
	};

	module.exports = fu.export(
		myObject,
		fu.params()
	);
	
The above example can be run from another script...

	require('myScript').who.am.i();

... and it can also be run in the terminal

	node myScript.js who am i

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