# form-autofill-js

Tool for auto filling html forms based on the fake data generator: [casual.js](https://github.com/boo1ean/casual)
![gif](https://github.com/jhta/form-autofill-js/blob/master/1.gif)

The Tool identifies the html component based on the `name` and `type` params and fill it with a random pair from the object `casual`.

## How to install

`npm i -S -D form-autofill-js`

or 

`yarn add form-autofill-js --dev`

## how to use

Fill from javascript
```` javascript
import AutoFill from 'form-autofill-js'

Autofill.fill()
````
You can use a Button tool for fill with a button click event:

````javascript
Autofill.tool()
````

