Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function getCursor
import { getCursor } from "https://deno.land/x/netzo@0.4.49/plugins/auth/utils/http.ts";

Returns the cursor URL parameter value of the given URL.

Examples

Example 1

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

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