Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.87/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 ""