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.
then in the fncion node you call this library with global.get
This and much more is found in the documentation, it is good to take a look