method FileHandlerManager.prototype.hasHandler
FileHandlerManager.prototype.hasHandler(filePath: string): boolean

Check if a handler exists for a file

Examples

Example 1

if (manager.hasHandler("./package.json")) {
  console.log("Package.json can be handled automatically");
}

Parameters

filePath: string
  • Path to check

Return Type

boolean

True if a handler exists

Usage

import { FileHandlerManager } from ".";