Skip to content

Function: nameWithoutExt()

ts
function nameWithoutExt(path): string;

Returns the file name without its final extension.

Parameters

ParameterTypeDescription
pathstringThe source path.

Returns

string

The file name without extension.

Example

ts
nameWithoutExt('foo.min.js')
// => 'foo.min'

Since

1.0.0

Released under the MIT License.