How can self-packaged libraries be submitted to gitHub and provided for introduction by other projects?

encapsulate a simple library in js or vue (such as a loading), and then upload it to gitHub, and generate dependencies for later use by other projects. What is the specific process and operation? Do you guys have any tutorials? It is best to guide in person, with links to tutorials or documentation, thank you very much.

Mar.04,2022

what you're talking about is publishing a npm package and then npm install in the project and then import introduces

.

https://blog.csdn.net/u014302.


is used by other projects, mainly to upload to the npm repository.
search for keywords such as npm posts, such as https://codeshelper.com/a/11.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35f17-2c001.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35f17-2c001.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?