Currently, when I want to debug to see what the string that would be hashed is, I have to run the following:
let output = '';
require('object-hash').writeToStream(input, options, {
write: (x) => {
output += x;
},
});
return output;
It would be convenient if, when the hashing algorithm requested is none or some other placeholder value, the library would simply output the value that would be hashed.