Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netzo/core/plugins/auth/utils/http.ts>getCursor

Deno-powered framework for building business web apps
Go to Latest
function getCursor
import { getCursor } from "https://deno.land/x/netzo@0.3.91/core/plugins/auth/utils/http.ts";

Returns the cursor URL parameter value of the given URL.

Examples

Example 1

import { getCursor } from "../../../../core/plugins/auth/utils/http.ts";

getCursor(new URL("http://example.com?cursor=12345")); // Returns "12345"
getCursor(new URL("http://example.com")); // Returns ""