How to put github dependencyob p5.js

I am new to p5.js (my experience with JavaScript is very limited as well). I am going to create public guthub repository with sketch and I would like that anybody who clone it will have the ability to run it. That would be easy to achieve by putting p5.js into the repository, but that does not look nice. Can I describe in my project dependency on p5.js the way Go does it with mod file or Rust with cargo file.

Just have an “index.html” file like the 1 from the link below:

Then go to “Settings” & enable the “GitHub Pages” option there in order for the repo to become runnable like this:
GoSubRoutine.GitHub.io/Ball-in-the-Chamber/p5js_global/

Thanks. It helped. Actually https://p5js.org/get-started/ describes it I just missed: Using a hosted version of the p5.js library