mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
* Add unc paths to isAbsolute regex * Allow unc paths to be resolved and normalized * Remove trailing whitespace
@protobufjs/path
A minimal path module to resolve Unix, Windows and URL paths alike.
API
-
path.isAbsolute(path:
string):boolean
Tests if the specified path is absolute. -
path.normalize(path:
string):string
Normalizes the specified path. -
path.resolve(originPath:
string, includePath:string, [alreadyNormalized=false:boolean]):string
Resolves the specified include path against the specified origin path.
License: BSD 3-Clause License