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

std/uuid/_common.ts>stringToBytes

Deno standard library
Go to Latest
function stringToBytes
import { stringToBytes } from "https://deno.land/std@0.148.0/uuid/_common.ts";

Converts a string to a byte array using the char code.

Parameters

str: string

Value that gets converted.

Returns

number[]