Skip to content

Instantly share code, notes, and snippets.

@sixpetrov
sixpetrov / walksync.js
Created September 5, 2018 16:15 — 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