Skip to main content
Module

x/scaffold/src/glob.ts>glob

scaffold your next project with style and 💗
Latest
function glob
import { glob } from "https://deno.land/x/scaffold@0.3.0/src/glob.ts";

An async iterable for searching through the provided patterns relative to the cwd.

import { glob } from '@monots/glob';

for await (const entry of glob('packages', { matches: ['*.package.json'] })) {
  const contents = await fs.readFile(entry, 'utf8');
  const json = JSON.parse(contents);

  if (json.name === "@monots/target") {
    // do something
    break;
  }
}