Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var glob = require('glob')
function find(pattern) {
glob(pattern, function(err, files) {
if(err) {
console.log(err)
}
console.log(pattern)
console.log(files)
})
}
var pattern = "./src/**/*.js"
find(pattern)
pattern = "**/*.css"
find(pattern)
pattern = "**/*.html"
find(pattern)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment