UNPKG
cdn
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
Upload your files to cdn.
github.com/afc163/cdn
afc163/cdn
cdn
/
lib
/
fileName.js
10 lines
(7 loc)
•
168 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
exports.parse =
function
(path)
{
if
(
path
.indexOf(
'/'
) ===
-1
) {
return
path
; }
else
{
return
path
.slice(
path
.lastIndexOf(
'/'
) +
1
); } };