library in Javascript.
A library is a distribution format as a package that is created
The difference between a package and a library is that the modules are compiled into one file called a library that is accessible via a single global variable without any sort of import.
<script
src="https://code.jquery.com/jquery-3.4.1.slim.js"
integrity="sha256-BTlTdQO9/fascB1drekrDVkaKd9PkwBymMlHOiG+qLI="
crossorigin="anonymous"></script>
jQuery('body').after("<h2>Hello Foo</h2>");
A library is installed via the script element of the html page. The library will be then available via a global variable
As a library is another format distribution of a package. If you are working in a project developed locally with the node engine, you may also want to install it as a package via a package manager)
Every package may takes the form of a library
Example: