# valik

> The ultimate solution to your input fields error handling !

Latest version **1.0.2** (published 2019-11-03) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2019-11-03 |
| First published | 2019-11-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hur Ali |
| Maintainers | hurali97 |
| Keywords | validate, field-validation, valik |

## Links

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

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-11-03
- 1.0.1 — 2019-11-03
- 1.0.0 — 2019-11-02

## README

# Valik

The ultimate solution to your error handling. With everything in your control, it is the easiest module to implement.

## Installation :
```bash
npm i --save valik
```

## Usage :
```javascript
import React, { Component } from 'react';
import { valikName } from 'valik';

class App extends Component{
    
    state = {
        name: ''
    }


    render(){
        return(
            <div>
                <input placeholder="enter your name" value={this.state.name} 
                onChange={( event ) => this.setState({name: event.target.value})}
                />

                <button 
                onClick={()=>console.log(valikName({name: this.state.name, errorEmpty: "Please enter your name"}))}>
                submit</button>
            </div>
        )
    }
}
```

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