Skip to content

Instantly share code, notes, and snippets.

@akameco
Created February 21, 2019 16:23
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 akameco/dd829735befd25e8dfa4a56a72593834 to your computer and use it in GitHub Desktop.
Save akameco/dd829735befd25e8dfa4a56a72593834 to your computer and use it in GitHub Desktop.
const util = require('util');
const glob = require('glob')
const del = require('del');
const globP = util.promisify(globF)
const main = async () => {
const files = await globP('*/*/node_modules')
console.log(files);
for (const f of files) {
console.log(f)
await del(f)
}
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment