Filepath → Title Take any file path and turn it into a fancy title filepathToTitle('/Apple/orange-pear/yellow-banana.js'); // 'Apple: Orange Pear: Yellow Banana'