UNPKG

extra-path

Version:

Useful additions to inbuilt path module.

26 lines (23 loc) 858 B
export { FormatInputPathObject, ParsedPath, PlatformPath, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, posix, relative, resolve, sep, toNamespacedPath, win32 } from 'path'; /** * Get file name without extension. * [📘](https://github.com/nodef/extra-path/wiki/filename) * @param pth file path * @returns file name */ declare function filename(pth: string): string; /** * Get symbol name for file. * [📘](https://github.com/nodef/extra-path/wiki/symbolname) * @param pth file path * @returns symbol name */ declare function symbolname(pth: string): string; /** * Get keyword name for file. * [📘](https://github.com/nodef/extra-path/wiki/keywordname) * @param pth file path * @returns keyword name */ declare function keywordname(pth: string): string; export { filename, keywordname, symbolname };