This website requires JavaScript.
Explore
Help
Sign In
186526
/
unpkg
Watch
1
Star
0
Fork
You've already forked unpkg
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
ada19ecef1
unpkg
/
modules
/
utils
/
addLeadingSlash.js
4 lines
103 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Experimental port to Firebase hosting
2019-01-06 00:50:05 +00:00
export
default
function
addLeadingSlash
(
name
)
{
Use single quotes :P
2018-12-17 17:38:05 +00:00
return
name
.
charAt
(
0
)
===
'/'
?
name
:
'/'
+
name
;
Don't cache packages on the filesystem Should help with transient errors reported in #86, #104, and #110
2018-07-04 23:30:11 +00:00
}