FileHound
    Preparing search index...

    Function ext

    • Matches files with any of the given extensions. A leading dot is optional.

      Parameters

      • ...extensions: string[]

        one or more extensions

      Returns FilePredicate

      the predicate

      FileHound.create().match(ext('json', '.txt'));
      
    • Matches files with any of the given extensions. A leading dot is optional.

      Parameters

      • extensions: string[]

        an array of extensions

      Returns FilePredicate

      the predicate