Dinero Formatting

🌐Community
by dinerojs · vlatest · Repository

Formats currency values into consistent, localized strings according to specified rules and currencies.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add dinero-formatting npx -- -y @trustedskills/dinero-formatting
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "dinero-formatting": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/dinero-formatting"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The dinero-formatting skill provides formatting capabilities for numerical values, specifically using the Dinero.js library. It allows you to format numbers as currency strings with various options like locale, symbol placement, and rounding. This ensures consistent and localized presentation of monetary data within your AI agent's responses.

When to use it

  • Generating invoices or receipts: Format amounts accurately for financial documents.
  • Displaying product prices: Present prices in a user-friendly currency format based on their location.
  • Reporting financial summaries: Format numerical data like revenue, expenses, and profit with appropriate currency symbols and decimal places.
  • Creating budget reports: Display income and expenditure figures clearly formatted for easy understanding.

Key capabilities

  • Currency formatting using Dinero.js
  • Locale-aware number presentation
  • Customizable symbol placement (prefix or suffix)
  • Rounding options for monetary values

Example prompts

  • "Format $1234.56 as US currency."
  • "Show 9876543.21 formatted in Euros with a prefix symbol."
  • "Round and format 123.456 to the nearest cent as Canadian dollars."

Tips & gotchas

  • Ensure Dinero.js is installed for this skill to function correctly.
  • Specify the locale when formatting numbers to ensure accurate currency symbols and number formats.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
dinerojs
Installs
13

🌐 Community

Passed automated security scans.