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

std/uuid/_common.ts>stringToBytes

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function stringToBytes
import { stringToBytes } from "https://deno.land/std@0.80.0/uuid/_common.ts";

Converts a string to a byte array using the char code

Parameters

str: string

Value that gets converted

Returns

number[]