MCPcopy Create free account
hub / github.com/awslabs/llrt / basename

Method basename

types/path.d.ts:109–109  ·  view source on GitHub ↗

* Return the last portion of a path. Similar to the Unix basename command. * Often used to extract the file name from a fully qualified path. * * @param path the path to evaluate. * @param suffix optionally, an extension to remove from the result.

(path: string, suffix?: string)

Source from the content-addressed store, hash-verified

107 * @param suffix optionally, an extension to remove from the result.
108 */
109 basename(path: string, suffix?: string): string;
110 /**
111 * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
112 * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.

Callers 6

buildLibraryFunction · 0.80
constructorMethod · 0.80
spawnWorkersMethod · 0.80
fs.test.tsFile · 0.80
runSuiteFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected