UNPKG

290 BJavaScriptView Raw
1"use strict";
2
3var path = require("path");
4
5module.exports = function (filePath) {
6 var _path$parse = path.parse(filePath),
7 dir = _path$parse.dir,
8 name = _path$parse.name;
9
10 var parsedName = name === "index" ? "" : name;
11 return path.posix.join("/", dir, parsedName, "/");
12};
\No newline at end of file