# clafm

> Command Line Argument/Flag Framework Module

Latest version **1.0.3** (published 2018-07-23) · ISC license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2018-07-23 |
| First published | 2018-07-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pyxelx |
| Maintainers | pyxelx |
| Keywords | flags, arguments, commandline, cli |

## Links

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

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-07-23
- 1.0.2 — 2018-07-23
- 1.0.1 — 2018-07-23
- 1.0.0 — 2018-07-23

## README

# CLAFM

## Command Line Argument Framework Module

**initializing the module**

```js
const clafm = require("clafm");
clafm.init(process.argv, 2);
```

**adding flags to the module**

```js
// example: clafm.add("test", 't');
clafm.add("name", "alias");
```

**remove flags from the module**

```js
// example: clafm.remove("test");
clafm.remove("name");
```

**getting values from cli flags**

```js
// example: clafm.get("test");
// this will get both --test and -t
var value = clafm.get("name");
console.log(value);
```

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