Would it be possible to expose sweep mode to node-hackrf?
I've created an alternative, hackrf.js, that supports sweep mode.