UNPKG

@squirrel-forge/ui-util

Version:

A collection of utilities, classes, functions and abstracts made for the browser and babel compatible.

15 lines (13 loc) 323 B
/** * Requires */ import { trimChar } from './trimChar.js'; /** * Normalize path string * @param {string} path - Path to normalize * @param {string} separator - Path separator * @return {string} - normalized path */ export function normalizePath( path, separator = '/' ) { return trimChar( path, separator ); }