From bfc898c5664e56fbcfdd9a2450923085b27fe89b Mon Sep 17 00:00:00 2001 From: Mqxx <62719703+Mqxx@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:50:43 +0100 Subject: [PATCH] Create normalize_path.ts --- src/filesystem/normalize_path.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/filesystem/normalize_path.ts diff --git a/src/filesystem/normalize_path.ts b/src/filesystem/normalize_path.ts new file mode 100644 index 0000000..553d1de --- /dev/null +++ b/src/filesystem/normalize_path.ts @@ -0,0 +1,11 @@ +/** + * This function takes a path and a separator and returns the normalized path. + * ``` + * normalizePath('this///////is/a//very/messed//./up//.//long/../path//to///a//..../special/../file///.///'); + * // this/is/a/very/messed/up/path/file/ + * ``` + * @returns The normalized path + */ +export default function normalizePath() { + +}