Skip to content

Instantly share code, notes, and snippets.

@roblav96
Last active July 21, 2020 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roblav96/7fe4a90bdb860eee3d2a807fa688d356 to your computer and use it in GitHub Desktop.
Save roblav96/7fe4a90bdb860eee3d2a807fa688d356 to your computer and use it in GitHub Desktop.
$ node --require $(npm root -g)/node-env-dev --inspect -c
glob = require('/usr/local/lib/node_modules/glob')
cwd = process.cwd()
g = (pattern) => {
	files = glob.sync(pattern, { cwd, nodir: true, absolute: true, strict: false })
	console.log(`files ->`, files.map(v=>v.replace(`${cwd}/`, '')).sort(), files.length)
}
p = '{.,}**/**'
console.log('\033[2J\033[3J\033[1;1H')
console.clear()
g(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment