# checkup

> check arguments and if they wrong throw exeption

Latest version **1.3.0** (published 2015-06-09) · MIT license · 0 weekly downloads

## Install

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

## 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.3.0 |
| Published | 2015-06-09 |
| First published | 2014-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | coderaiser |
| Maintainers | coderaiser |

## Links

- npm: https://www.npmjs.com/package/checkup
- Repository: https://github.com/coderaiser/node-checkup
- Homepage: http://github.com/coderaiser/node-checkup
- Issues: https://github.com/coderaiser/node-checkup/issues
- npm.io page: https://npm.io/package/checkup

## Recent versions

- 1.3.0 (latest) — 2015-06-09
- 1.2.1 — 2015-06-09
- 1.2.0 — 2015-06-09
- 1.1.0 — 2015-06-09
- 1.0.3 — 2015-01-19
- 1.0.2 — 2014-11-24
- 1.0.1 — 2014-11-24
- 1.0.0 — 2014-11-24

## README

# Checkup

Check arguments and if they wrong throw exeption.

## Install

```
npm i chukup --save
```

## How to use?

```js
var check   = require('checkup');

function someFn(arg1, arg2, arg3) {
    check({
        arg1: arg1,
        arg2, arg2
        arg3: arg3
    });
}

function showName(name, callback) {
    check(arguments, ['name'])
    .check(arguments, ['callback'])
    .type('name', name, 'string')
    .type('callback', callback, 'function');

    console.log('every thing is ok:', name);
}

function callCallback(callback) {
    check([callback], ['callback'])
    .type('callback', callback, 'function');
    
    callback();
}

```

## License

MIT

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