Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xdg/vendor/types/deno.d.ts>URLSearchParams#set

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
method URLSearchParams.prototype.set
import { URLSearchParams } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.d.ts";

Sets the value associated with a given search parameter to the given value. If there were several matching values, this method deletes the others. If the search parameter doesn't exist, this method creates it.

searchParams.set('name', 'value');

Parameters

name: string
value: string