Import js script from github repo using link
ReallyBasic (14)

I am trying to create a modding system for a game I am making using javascript, so I am allowing users to insert a link to a GitHub repo and upload mods in a json format. There is a readme and a mod.js file in each mod, but I only need to read the mod.js file.

What would be the best way to do this?

Thanks, RBG

You are viewing a single comment. View All
Answered by Coder100 (18922) [earned 5 cycles]
View Answer
ReallyBasic (14)

So if they submit a link like this one:
then how would I be able to get the url to that specific file?
To narrow down what I am looking for, is there a specific method I can write or call?

Thanks for the response!