I installed a public github repo using the syntax provided in the repository's readme:
npm install https://github.com/user_name/proj_name.git
However, I'm not sure how to load this module into my js code. I've tried:
const my_lib = 'proj_name';
Unfortunately, this is not working for me. How can I load a module that was installed directly from a github repository?
package.jsonfile in that repo?package.jsonfile and import module withconst my_lib = require('package_name')yarn add expressjs/express, this would be seen in package.json asexpress, so you can import this module withconst express = require('express')