Capsium TypeScript API
    Preparing search index...

    Function stripScopePrefix

    • The package-relative path for a request pathname, or null when the path is outside the scope — the reactor must not respond to those requests. prefix is the scope's pathname; a trailing slash is optional.

      Parameters

      • pathname: string
      • prefix: string

      Returns string | null