You have two options, both bindings against software created by the excellent LAME Project.
The lame npm package is a full-featured binding against the libmp3lame C library. I would recommend this unequivocally, except that it hasn't been updated in four years.
You could also use the node-lame npm package. It is a wrapper around the lame CLI tool, ...