@protobufjs/path

A minimal path module to resolve Unix, Windows and URL paths alike.

Usage no npm install needed!

<script type="module">
  import protobufjsPath from 'https://cdn.skypack.dev/@protobufjs/path';
</script>

README

@protobufjs/path

npm

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