path.extname implementation adapted to also include multiple dots extensions.
This module contains the native implementation of Node.js
path.extname method adapted to get complete extension names.
var path = ;var pathCompleteExtname = ;var filename = 'myfile.tar.gz';path; // .gz; // .tar.gz
For more information about what filenames are valid and what will be returned in each case, see the test.js file.
Released under the MIT License.