How to include npm packages, specifically moment.js



I would like to transform dates using the moment.js library. In the script that is called to transform the value, I would like to call functions from the library moment.js. i.e. I click the ‘edit script’ button and would like to transform the input variable.


What is the best way to include the moment.js library?