You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constROOT_RE=/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]?;exportdefault(filepath)=>{if(typeoffilepath!=='string')thrownewTypeError('expected a string');returnROOT_RE.exec(filepath)[0];};
Manifest type
micro-utility (tiny utility replaceable with native code or removal)
Activity
outslept commentedon Aug 26, 2026
IDK where to put this.. maybe native is more suitable
43081j commentedon Aug 26, 2026
maybe we can put it in micro-utilities but give it a doc to explain the two usages (node vs browser)
gameroman commentedon Aug 26, 2026
Most downloads come from
parse-filepath