If you install a Drupal module that requires an external JavaScript library, you are more or less left on your own how to get the library into your project. If you manage your site with Composer, manually downloading and extracting packages is one of the things you wanted to avoid. Learn how Asset Packagist helps you to avoid it.
Asset Packagist makes it easy to add external JavaScript libraries to Drupal projects