I'm looking at some obfuscated JS:
const f = Buffer.from("Lw==", "base64");
// select ^---------------------------^
How can I send the selection to node -p
and replace?
I tried :'<,'>!node -p
, but that produced undefined
, because it sent the whole line instead of just the selected part of the line. It also deleted the indent and const f =
, which I didn't want to do.