node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป



Wrapper for request module that saves all traffic as a HAR file, useful for auto mocking a client

Build Status Coverage Status Dependency Status devDependency Status js-semistandard-style

Use this module as drop-in replacement for

All traffic can be saved by calling


Collected traffic can be cleared by calling


This is especially useful for capturing all test traffic from your back-end test suite, for doing auto mocking in your front-end test suite. See this project for an example:

Blog post about this technique: