mwg API
    Preparing search index...

    Class PackagePathError

    A path escapes the package (absolute, .., a drive, a backslash) or appears twice.

    import { checkPackagePath, PackagePathError } from '@datamoc/mwg/mwl';

    try {
    checkPackagePath('../escape.txt');
    } catch (error) {
    console.log(error instanceof PackagePathError); // true
    }

    Hierarchy (View Summary)

    Index