# provoker

> ```node.js const provoker = require('provoker'); provoker.provoke(['Username:-', 'Password:-'], (results) => { console.log(results); process.exit(); }); ``` ###### The 'process.exit();' line The process.exit(); line is extremely important

Latest version **1.1.0** (published 2021-01-04) · ISC license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2021-01-04 |
| First published | 2021-01-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | techwolf123 |
| Keywords | prompt, user, cli, input, user-input, test, testing, backend |

## Links

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

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-01-04
- 1.0.12 — 2021-01-04
- 1.0.11 — 2021-01-04
- 1.0.10 — 2021-01-04
- 1.0.9 — 2021-01-03
- 1.0.8 — 2021-01-03
- 1.0.7 — 2021-01-03
- 1.0.6 — 2021-01-03
- 1.0.5 — 2021-01-03
- 1.0.4 — 2021-01-03
- 1.0.3 — 2021-01-02
- 1.0.2 — 2021-01-02
- 1.0.1 — 2021-01-02

## README

# Basic Use
```node.js
const provoker = require('provoker');
provoker.provoke(['Username:-', 'Password:-'], (results) => {
    console.log(results);
    process.exit();
});
```
###### The 'process.exit();' line
The process.exit(); line is extremely important since the function keeps running if you dont put it.
Nothing runs after the function without causing distubance, so it is recommended to not use any other code post the function

# Advanced use
If using for commands and more, It is recommended to create the main code in another file and export it as in the code below:
```node.js
//File1(Or the function file)
const MainFunction = (results)=>{
    console.log(results)
} 
module.export = MainFunction
```
```node.js
const provoker = require('provoker');
const MainFunction = require('./function')
provoker.provoke(['Username:-', 'Password:-'], (results) => {
    MainFunction(results);
    process.exit();
});
```

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