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

x/netzo/plugins/auth/utils/display.ts>formatCurrency

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function formatCurrency
import { formatCurrency } from "https://deno.land/x/netzo@0.4.49/plugins/auth/utils/display.ts";

Returns a formatted string based on the given amount of currency and the en-US locale. Change the locale for your use case as required.

Examples

Example 1

import { formatCurrency } from "../../../../auth/utils/display.ts";

formatCurrency(5, "USD"); // Returns "$5"

Parameters

amount: number
currency: string

Returns

string