http://nodejs.org/docs/latest/api/path.html#path_path_extname_p