githubEdit

$extname

Returns the extension name of a filename.

Signature

{{$extname filename }}

Arguments

Name
Description
Type
Required

filename

The name of the file that you're trying to get the extension name of.

String

Example

{{$extname filename}}

Last updated

Was this helpful?