We have updated our Terms of Service, Code of Conduct, and Addendum.

Can I load a .js file up and just tell the code function to run the js file?

I'm using a code function in my pipeline for some extra custom logic, but exporting that as yml config is kinda ugly. Is there any chance I can load a .js file up and just tell the code function to run the js file? This would make local testing of my custom js a much nicer experience. I am doing this with samples for my test cases where I have the sample file locally and I load it up to the cribl server, and reference the file in my samples.yml. I'd love to do basically the same thing with a code function.

Answers