Skip to content

craft-hub / normalizeDocumentPath

Function: normalizeDocumentPath() ​

normalizeDocumentPath(input, options?): string

Defined in: packages/craft-hub/src/document-spaces.ts:243

Normalize a space-relative document or folder path to POSIX slashes while rejecting traversal.

Parameters ​

input ​

string

options? ​

allowEmpty? ​

boolean

Returns ​

string

Released under the MIT License.