Uzyskaj część nazwy pliku z __fileName w JS

path.basename('/foo/bar/baz/asdf/quux.html')
// returns
'quux.html'
Emmanuel Mahuni