You can upload files to use in your Napkin functions. Go to the
Other tab in the Napkin editor and scroll down to
Files. You can upload any file as long as its size is less than 1MB.
Once uploaded, your function can access your files via the
file.txt, here's how you can print the contents of the file:
import fs from "fs"; const data = fs.readFileSync("/opt/files/file.txt", "utf-8"); console.info(data);