remove-path-prefix.d.ts 386 B

12345678
  1. /**
  2. * Given a path and a prefix it will remove the prefix when it exists in the
  3. * given path. It ensures it matches exactly without containing extra chars
  4. * and if the prefix is not there it will be noop.
  5. * @param path The path to remove the prefix from.
  6. * @param prefix The prefix to be removed.
  7. */
  8. export declare function removePathPrefix(path: string, prefix: string): string;