Yes, that works well but only in node environment. In javascript in the browser, Buffer is not accessible and thus you need to go with the atob or btoa solution (if you don't want some complex webpack that can simulate a buffer or any external buffer-ish libraries).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, that works well but only in node environment. In javascript in the browser, Buffer is not accessible and thus you need to go with the
atob
orbtoa
solution (if you don't want some complex webpack that can simulate a buffer or any external buffer-ish libraries).