MCPcopy
hub / github.com/RubyLouvre/anu / splitPath

Function splitPath

test/babel.js:1982–1984  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

1980 // 'root' is just a slash, or nothing.
1981 var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
1982 var splitPath = function splitPath(filename) {
1983 return splitPathRe.exec(filename).slice(1);
1984 };
1985
1986 // path.resolve([from ...], to)
1987 // posix version

Callers 1

babel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected