form-autofill-js
Version:
Tool for autofill html forms using a controlled way
30 lines (18 loc) • 642 B
Markdown
# form-autofill-js
Tool for auto filling html forms based on the fake data generator: [casual.js](https://github.com/boo1ean/casual)

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()
````