Schedule AWS Lambda to download a file from the internet and save it to S3

How to write an AWS Lambda (Node.js) function and schedule it daily to download a file from the internet and save it into an S3 bucket.