I am new to NodeJS and would like to know is there a way to store the following urls in a files instead of a const strings in an array and still utilize the same async code to read and process the urls as in the example link below from github:https://ift.tt/2EEeCSi is the const urls example:const urls = ['https://jsonplaceholder.url01.com','https://jsonplaceholder.url02.com','https://jsonplaceholder.url03.com'];I would like to store the urls in either a JSON or a text file and have the application still perform async read to process the data from a file instead of the urls within the nodejs application.Basically, I would like to store the following in a text file:['https://ift.tt/2ExwJJ7];
Submitted December 19, 2018 at 01:43AM by AutoGenModerator
No comments:
Post a Comment