Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

string

import { string } from "https://git.sr.ht/~ruivieira/deno-experiments/blob/master/randomjs/mod.ts";

Returns a distribution that returns a random string using numbers, uppercase and lowercase letters, _, and - of length length.

function string(): StringDistribution;
function string(pool: string): StringDistribution;
function string(pool?: string): StringDistribution;
§

Returns a distribution that returns a random string using numbers, uppercase and lowercase letters, _, and - of length length.

§
string(pool: string): StringDistribution
[src]

Returns a distribution that returns a random string using the provided string pool as the possible characters to choose from of length length.

§Parameters

§
pool: string
[src]
§
string(pool?: string): StringDistribution
[src]

§Parameters

§
pool?: string optional
[src]