How can I node -pe "require('./package.json').version"
with prefix HELLO into file?
node -pe "require('./package.json').version" | "HELLO" + $res > file.txt
is not working.
I want to use single line command (not full multiline bash script)
Simple demo
echo "world" | "HELLO" + $res > file.txt
The expected output in file - HELLO world