Function findPaths

  • Find all stored paths with filtering.

    Parameters

    • Optionaloptions: FilterOptions

      If options is null, all the paths will be returned.

    • OptionaltoSearchIn: FilePath[]

      If not provided, the search will be performed on the stored paths.

    Returns FilePath[]

    • If no paths found, an empty array will be returned.
    findPaths({ extension: 'js' })
    
    findPaths({ extension: /^js(on)?$/ })