MCPcopy Create free account
hub / github.com/blueberryapps/react-bluekit / normalizePath

Function normalizePath

src/libraries/normalizePath.js:3–8  ·  view source on GitHub ↗
(str, separator = path.sep)

Source from the content-addressed store, hash-verified

1import path from 'path';
2
3export default function normalizePath(str, separator = path.sep) {
4 if (separator === '\\') {
5 str = str.replace(/\\/g, '/');
6 }
7 return str;
8}

Callers 2

generateComponentDataFunction · 0.85
normalizePath.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected