Skip to content

Instantly share code, notes, and snippets.

@akameco
Created February 21, 2019 16:23
Show Gist options
  • 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