# How to use other js files

**URL:** <https://discourse.nodered.org/t/how-to-use-other-js-files/18999>\
**Category:** General\
**Created:** [10 December 2019 15:42 UTC](https://discourse.nodered.org/t/how-to-use-other-js-files/18999 "2019-12-10T15:42:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nxito](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nxito/32/88293_2.png) [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Post date:** [11 December 2019 08:11 UTC](https://discourse.nodered.org/t/how-to-use-other-js-files/18999/3 "2019-12-11T08:11:27Z")

</div>

quickly:  
you add in the section functionGlobalContext ( in your settings.js file located in the folder where you installed node-red) the library as in the image.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/9974633bc3f8a780d8d89bcab5feb811a90057cb.png)  
then in the fncion node you call this library with global.get  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/526447cfc0ae7070cb837642e7f68c88eddecd83.png)

This and much more is found in the documentation, it is good to take a look

---

_[View the full topic](https://discourse.nodered.org/t/how-to-use-other-js-files/18999)._
