Skip to main content
Module

x/kv_toolbox/size_of.ts>sizeOf

Utilities for working with Deno KV 🦕🗝️
Go to Latest
function sizeOf
import { sizeOf } from "https://deno.land/x/kv_toolbox@0.17.0/size_of.ts";

Estimates the size, in bytes, of the V8 serialized form of the value, which is used to determine the size of messages being stored with Deno KV.

This exists when V8 serialize is not available, like when running on Deno Deploy.

Parameters

value: unknown

Returns

number