I\'m using the npm module node-glob.
This snippet returns recursively all files in the current working directory.
var glob = require(\'glob\'); glob(
You can use node-globule for that:
var globule = require('globule'); var result = globule.find(['**/*', '!index.html', '!js/lib.js']); console.log(result);