Skip to content

Instantly share code, notes, and snippets.

View yannbf's full-sized avatar
💻
Busy!!

Yann Braga yannbf

💻
Busy!!
View GitHub Profile
@yannbf
yannbf / walksync.js
Created October 11, 2018 09:17 — forked from luciopaiva/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
#!/usr/bin/env node
const
path = require("path"),
fs = require("fs");
/**
* List all files in a directory recursively in a synchronous fashion
*
* @param {String} dir