ls
A parallelized recursive implementation of ls
using fs.readdir
Time spent: 6 hours
Completed:
Walkthrough Gif:
Clone the repo:
git clone https://github.com/jnitin29/nodejs-ls/
Place all your code in ls.js
's async function ls()
:
require('./helper')
async function ls() {
// Use 'await' inside 'async function's
console.log('Executing ls function...')
// Your implementation here
}
ls()
Run:
babel-node ./ls.js