extra-path
Version:
Useful additions to inbuilt [@std/path] module.<br>
17 lines (16 loc) • 628 B
TypeScript
export { type ParsedPath, DELIMITER as delimiter, SEPARATOR as sep, basename, dirname, extname, isAbsolute, relative, format, join, parse, normalize, resolve, toNamespacedPath } from "@std/path";
/**
* Get file name without extension.
* @param pth file path
* @returns file name
*/ export declare function filename(pth: string): string;
/**
* Get symbol name for file.
* @param pth file path
* @returns symbol name
*/ export declare function symbolname(pth: string): string;
/**
* Get keyword name for file.
* @param pth file path
* @returns keyword name
*/ export declare function keywordname(pth: string): string;