# ifif

> simple code validator

Latest version **0.1.14** (published 2016-06-16) · MIT license · 0 weekly downloads

## Install

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

## 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.1.14 |
| Published | 2016-06-16 |
| First published | 2016-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hana |
| Maintainers | b6pzeusbc54tvhw5jgpyw8pwz2x6gs, hanawasborn |

## Links

- npm: https://www.npmjs.com/package/ifif
- Repository: https://github.com/hanalee/ifif
- Homepage: https://github.com/hanalee/ifif#readme
- Issues: https://github.com/hanalee/ifif/issues
- npm.io page: https://npm.io/package/ifif

## Recent versions

- 0.1.14 (latest) — 2016-06-16
- 0.1.13 — 2016-05-26
- 0.1.12 — 2016-05-26
- 0.1.11 — 2016-05-26
- 0.1.10 — 2016-05-26
- 0.1.9 — 2016-05-11
- 0.1.7 — 2016-05-11
- 0.1.6 — 2016-05-11
- 0.1.4 — 2016-05-11
- 0.1.3 — 2016-04-28
- 0.1.2 — 2016-04-28
- 0.1.1 — 2016-04-28
- 0.1.0 — 2016-04-28
- 0.0.6 — 2016-04-28
- 0.0.5 — 2016-04-28
- … 3 more at https://npm.io/package/ifif/versions

## README

[![npm version](https://img.shields.io/npm/v/ifif.svg?style=flat-square)](https://www.npmjs.com/package/ifif)

# ifif


## Usage

ifif( condition, message, errorcode );  
  
  
condition: make error when this param is true!  
message: optional  
errorcode: optional  
  
as is
```javascript
if( ! data ) {

	console.error( 'no data!');
	throw { errorCode: 'NO_DATA' };
}
```

to be
```javascript
var ifif = require('ifif');
ifif( ! data, 'no data!', 'NO_DATA' );
```

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