- Zip up this file by typing the following into the command line. The command consists of the first filename which is the zip file you want to create (call it whatever you like .zip) followed by the files you want to zip up. In our example you can see the name of the
.jsfile we created earlier:
$ zip -r hello-world.zip hello-world.js
You should now be able to see a
.ZIP file alongside your
NOTE: If your function has any dependencies then you must include your
node_modules file within your .ZIP file. Simply add
node_modules after the files you wish to zip up!