Skip to main content
Module

x/easyts/path/mod.ts

js library written with ts, use select and chan like golang in js.
Latest
import * as easyts from "https://deno.land/x/easyts@0.1.2/path/mod.ts";

Functions

returns the last element of path. Trailing slashes are removed before extracting the last element.

returns the shortest path name equivalent to path by purely lexical processing.

returns all but the last element of path, typically the path's directory.

returns the file name extension used by path

reports whether the path is absolute.

Join joins any number of path elements into a single path, separating them with slashes. Empty elements are ignored. The result is Cleaned. However, if the argument list is empty or all its elements are empty, Join returns an empty string.

reports whether name matches the shell pattern.

splits path immediately following the final slash, separating it into a directory and file name component. If there is no slash in path, Split returns an empty dir and file set to path.