Created
February 21, 2019 16:23
-
-
Save akameco/dd829735befd25e8dfa4a56a72593834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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