Skip to content

Instantly share code, notes, and snippets.

View t-kabaya's full-sized avatar

t-kabaya t-kabaya

  • Japan
View GitHub Profile
@victorsollozzo
victorsollozzo / gist:4134793
Created November 23, 2012 09:44
recursively find all files in a directory with given extension in node.js
var path = require('path')
var fs = require('fs')
function recFindByExt(base,ext,files,result)
{
files = files || fs.readdirSync(base)
result = result || []
files.forEach(
function (file) {