14.04.2020, 15:26
Just use require('user.user_lib_name') in your code. Keep in mind that if you require the same library multiple times it will be executed only the first time. If you need to call it multiple times then you need to wrap your code into a function and then call this function. It's also good practice to use local variables in your library otherwise variables with same name in your main script will be overwritten.