As already mentioned,
bitcoinjs-lib is the most common library that is used in the Bitcoin community coz it offers a huge range of functionalities.
You can also use
bitcoin-address-validation library which might suit even better. It is specifically dsigned for validating Bitcoin addresses and support almost every address types aswell.
This might be easier to use due the focus of validating Bitcoin addresses. I'm not saying that
bitcoinjs-lib is a bad choice. Quite the opposite and as already mentioned: its a library that covers a broad spectrum of Bitcoin functionalities, making it suitable for complex applications that require extensive Bitcoin transaction handling, wallet management and a few more features.
I just wanted to list an alternative.