# argument

> Argument testing for idiot proofing code.

Latest version **0.0.2** (published 2014-09-08) · 0 weekly downloads

## Install

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

## 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 | 2014-09-08 |
| First published | 2014-09-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christian Blanquera |
| Maintainers | cblanquera |
| Keywords | testing, argument |

## Links

- npm: https://www.npmjs.com/package/argument
- Repository: https://github.com/cblanquera/argument
- Issues: https://github.com/cblanquera/argument/issues
- npm.io page: https://npm.io/package/argument

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-09-08
- 0.0.1 — 2014-09-07

## README

#Argument

  Argument testing for idiot proofing code.

### Installation

```bash
$ npm install argument
```

## Quick Start

```
var classified = require('argument');

(function() {
	argument.test(1, 'null', 'string').test(2, 'bool', 'undef');
})('This is a String', true);

(function() {
	argument.test(1, 'null', 'url').test(2, 'array', 'undef');
})('http://www.openovate.com/');
```

### Argument Test Types

  * string
  * object
  * array
  * undefined
  * null
  * number
  * int
  * float
  * numeric
  * function
  * regex
  * date
  * url
  * cc
  * html
  * hex
  * email
  * alphanum
  * alphanumhyphen
  * alphanumscore
  * alphanumline

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