path.d.ts 531 B

12345678910111213141516
  1. /**
  2. * Returns «true» if the last partial of the path starting with a period.
  3. */
  4. export declare function isDotDirectory(filepath: string): boolean;
  5. /**
  6. * Return naive depth of provided filepath.
  7. */
  8. export declare function getDepth(filepath: string): number;
  9. /**
  10. * Return resolved a sequence of paths segments into an absolute path.
  11. */
  12. export declare function resolve(from: string, to: string): string;
  13. /**
  14. * Convert a windows-like path to a unix-style path.
  15. */
  16. export declare function normalize(filepath: string): string;