ext-name

Get the file extension and MIME type from a file

path-complete-extname

path.extname implementation adapted to also include multiple dots extensions.