patha
Version:
File paths library. All you need to work with paths. Tiny drop-in replacement for 'path'. Works in Node, Browser, and Deno.
16 lines (15 loc) • 309 B
TypeScript
/**
* Remove a path's extension.
*
* @example
*
* ```js
* import { removeExt } from "patha"
*
* removeExt("some/dir/file.ext") // gives "some/dir/file"
* ```
*
* @param path The given path
* @returns The path without its file extension
*/
export declare function removeExt(path: string): string;