An open API service indexing awesome lists of open source software.

https://github.com/kuzhalikumaraguru/nodeday1

File system - Create files with current date and time and retrieve all the text files by creating API endpoint
https://github.com/kuzhalikumaraguru/nodeday1

express filesystem http nodejs readfilesync server writefilesync

Last synced: 3 months ago
JSON representation

File system - Create files with current date and time and retrieve all the text files by creating API endpoint

Awesome Lists containing this project

README

        

1. API endpoint to create a text file in a particular folder - used post method and writeFileSync
2. Content of the file will be the current timestamp
3. API endpoint to retrieve the text file in a particular folder - used get method and readFileSync

1. Used express and node js file system
2. I have created file name with only date string along with random text to differentiate the file names
3. And current date & time file name is creating an issue so i have created with only date string.