# popform

> Autopopulate and submit web forms

Latest version **0.1.2** (published 2018-01-16) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-01-16 |
| First published | 2018-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jamrizzi |

## Links

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

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Recent versions

- 0.1.2 (latest) — 2018-01-16
- 0.1.1 — 2018-01-15
- 0.1.0 — 2018-01-15

## README

# popform

Autopopulate and submit web forms

## Usage

```sh
npm install --save popform
```

```js
import popform from 'popform';

const config = [
  {
    delay: 10000, // wait for the page to load
    fields: { // fields to populate
      username: {
        value: 'some-username'
      },
      password: 'some-password' // string assumed to be value
    },
    elements: [ // elements to modify
      {
        query: '.box',
        style: {
          backgroundColor: 'blue'
        }
      }
    ],
    submit: '#submit' // location of submit button
  },
  {
    // Autopopulate second form after first form is submitted
  }
];
  
popform(config).then(() => {
  console.log('Form autopopulated and submitted');
});
```

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