Dinero Formatting

🌐Community
by dinerojs · vlatest · Repository

Formats currency values into human-readable strings using dinero.js's flexible formatting options.

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 dinerojs-dinero-formatting npx -- -y @trustedskills/dinerojs-dinero-formatting
2

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

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

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

About This Skill

What it does

This skill provides formatting capabilities for monetary values using the dinero.js library. It allows you to display numbers as currency strings, applying appropriate symbols (like $, €, £), decimal places, and grouping separators based on a specified locale. This ensures consistent and user-friendly presentation of financial data in various regions.

When to use it

  • Generating invoices or receipts: Format amounts for clear and professional documentation.
  • Displaying product prices on an e-commerce site: Present prices according to the customer's location.
  • Creating financial reports: Format currency values consistently across different sections of a report.
  • Calculating and displaying loan payments: Ensure accurate and understandable presentation of monetary figures.

Key capabilities

  • Currency formatting based on locale
  • Customizable decimal places
  • Grouping separator configuration
  • Symbol placement options (prefix or suffix)

Example prompts

  • "Format 1234.5678 as currency in US dollars."
  • "Display the amount 5000 with two decimal places and a comma as the grouping separator, using Euros."
  • “Show me 1234567.89 formatted as British pounds.”

Tips & gotchas

  • Requires the dinero.js library to be installed and initialized beforehand. The skill relies on an existing Dinero instance.

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
3

🌐 Community

Passed automated security scans.