I'd like to search a directory for a specific filetype using node.js. var fs = require('fs'); var dir = process.argv[2]; // directory var ext = process.argv[3]; // file extension
Solution 1:
When you declare a regex object with new you should escape backslashes.
Post a Comment for "Node Args For File Extension Regexp"