GithubHelp home page GithubHelp logo

jhta / form-autofill-js Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 987 KB

Tool for auto filling html forms

Home Page: https://codesandbox.io/s/kmxmv1yx57

License: MIT License

JavaScript 19.96% HTML 10.90% CSS 69.14%
autofill form js html forms fill fake data

form-autofill-js's Introduction

form-autofill-js

Tool for auto filling html forms based on the fake data generator: casual.js

DEMO 1 - with CDN

DEMO 2 - with import

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

With CDN

<scripthttps://unpkg.com/form-autofill-js@latest/dist/main.js

<script src="https://unpkg.com/[email protected]/dist/main.js"></script>
  <script>Autofill.tool()</script>
</body>

how to use

Fill from javascript

import { fill } from 'form-autofill-js'

fill()

You can use a Button tool for fill with a button click event:

import { tool } from 'form-autofill-js'
Autofill.tool()

Add Chrome extension to Chrome

  • Clone repo
  • Go on chrome://extensions/
  • Enable Developer Mode
  • Load unpacked (to the directory)

form-autofill-js's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

form-autofill-js's Issues

receive default values as object

the idea is receive a object like:

{
  name: 'Frank',
  last_purchased: 'June 23, 2018',
  institution: 'University of Arizona'
}

and fill the inputs with these `names`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.