The @jazzer.js/instrumentor
module is used to instrument code for fuzzing.
It provides and registers Babel plugins to transform code in such a way that it provides feedback to the fuzzer. This feedback consists of coverage statistics, so that the fuzzer can detect when new code paths are reached, and comparison feedback, to enable the fuzzer to mutate it's input in a meaningful way.
Code loading is intercepted using istanbul-lib-hook , which also enables fine-grained control of when to apply the instrumentatino.
Using npm:
npm install --save-dev @jazzer.js/instrumentor
See Jazzer.js README for more information or the issues associated with it.