oh-my-glob Directory tree filtering with multiple globs npm install oh-my-glob const filter = require("oh-my-glob"); filter(process.cwd(), ["**/*.ts", "!node_modules", "!**/*.test.ts"])