Using Provided Service in Another File Apart from Main.js


I’m just getting the of the Service API for consuming and providing services across packages. I’m able to consume a service and use it in the main.js that contains the consume_service function; however, I need to use the provided service in another project file. Is there a way I can get to the consumed service from another .js file in the same directory?