Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var glob = require("glob"),
- // some options
- options = {
- cwd: "/Users/subramanya/Code/quantcommune/app-react/src"
- },
- // for Files
- forFiles = function(err, files) {
- console.log(files);
- };
- // glob it.
- let files = glob.sync("**/*.*(jpg|png|jpeg)", options);
- console.log(files);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement