Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var glob = require("glob"),
  2. // some options
  3. options = {
  4. cwd: "/Users/subramanya/Code/quantcommune/app-react/src"
  5. },
  6. // for Files
  7. forFiles = function(err, files) {
  8. console.log(files);
  9. };
  10.  
  11. // glob it.
  12. let files = glob.sync("**/*.*(jpg|png|jpeg)", options);
  13. console.log(files);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement