The RPi.GPIO library, part of Raspbian, is used by the default setup of Node-RED. It can do PWM but always in software. The Raspberry Pi also supports hardware PWM which makes a much more stable signal. It's a pain to listen to a piezo buzzer with software PWM, the frequency changes a lot. The hardware PWM signal, as tested with the Wiringpi command line tools, sounds a lot cleaner. But it's not easily accessible from Node-RED.
Why doesn't this library make use of the hardware PWM capabilities already? I mean, doing PWM in software on a non-realtime OS is not the brightest idea, isn't it?