Bash equivalent is just:
echo $'hello\nworld'
This uses ANSI C quoting https://www.gnu.org/software/bash/manual/html_node/ANSI_002d... .