harplayer

Replay HAR logs

Usage no npm install needed!

<script type="module">
  import harplayer from 'https://cdn.skypack.dev/harplayer';
</script>

README

harplayer

Replay HAR log entries to debug and visualize http services.

Install

npm install harplayer

Usage

var harplayer = require('harplayer')

var har = require('./har.json')

harplayer.replayOne(har, 0, function(err, res, body){
  if (err) throw err
  console.log(res.statusCode)
})

harplayer.replayAll(har, function(err, res, body){
  if (err) throw err
  console.log(res.statusCode)
})

harplayer.replayAllInParallel(har, function(err, res, body){
  if (err) throw err
  console.log(res.statusCode)
})

Check out the examples directory for more.

Contributing

Feedback and pull requests are most welcomed.

MIT license

Copyright (c) 2015, Mashape (https://www.mashape.com/)