0

I am using NodeJS and am making a discord bot using lots of API's (i am just playing around with them) and now I am wondering how I can import code from GitHub to my application without downloading it. Thanks!

zachary cohen
  • 55
  • 2
  • 9

1 Answers1

0

Do you mean using GitHub like a CDN for code or something? I think that's not recommended. What you can do is adding the code you need from GitHub as a package, installing it with npm like:

$> npm i git+https://git@github.com/user/project.git

More info here: How to install an npm package from GitHub directly?