Rocky_Mountain_Vending/.pnpm-store/v10/files/f4/98d0bbc7b195a0f43963081de206c78183a27ae1cb763b600e28e3298cd2e659a04ff76e75a6bfa9c3302f6bfac51a8eadfe9ede5a844304b25141f8486f04
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

10 lines
486 B
Text

import { fromArrayBuffer } from "@smithy/util-buffer-from";
export const toUtf8 = (input) => {
if (typeof input === "string") {
return input;
}
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
}
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
};