Call and/or import a node module

Hello. How do I import a node module to a client_script.js or anywhere at all.

There are some answers here but I don’t think any of them works at all.

Example node module I like to try is sweetalert2.

Bump.