simple-brute

1.0.0 • Public • Published

Simple Brute

Purpose of this module is to give a simple way of testing load on an API.

Usage

npm install simple-brute
var SimpleBrute = require('./simple-brute');

SimpleBrute._run('get', { url: "https://fed285ab.ngrok.io", repeat: 4, debug: true });

SAMPLE LOGS

ON ERROR
    Error On Request: 3,
    Reason: Error 502. Exiting!

ON SUCCESS
    Request: 10,
    DNS Lookup: 7.726604,
    TCP Connection: 386.382144,
    TLS Handshake: 658.416468,
    Content Transfer: 0.102445,
    First Byte: 204.53171,
    Total Request Time: 1257.159371
    ======================================================================

TODO

  • Add Tests
  • Extend to pipe logs to file
  • Use from commandline

Readme

Keywords

Package Sidebar

Install

npm i simple-brute

Weekly Downloads

10

Version

1.0.0

License

MIT

Unpacked Size

9.51 kB

Total Files

6

Last publish

Collaborators

  • wilforlan