Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
dinerojs avatar

Dinero Formatting

  • 7 installs
  • 6.8k repo stars
  • Updated August 1, 2026
  • dinerojs/dinero.js

Format Dinero.js monetary values for display with currency symbols, locale awareness, and serialization.

About

Formatting patterns for displaying Dinero.js monetary values with currency symbols and locale-aware output. A developer uses it when rendering prices and totals or serializing money objects.

  • Use toDecimal for display and compose with Intl.NumberFormat for currency symbols
  • Locale-aware and non-decimal currency formatting plus serialization patterns

Dinero Formatting by the numbers

  • 7 all-time installs (skills.sh)
  • Ranked #826 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dinerojs/dinero.js --skill dinero-formatting

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7
repo stars6.8k
Last updatedAugust 1, 2026
Repositorydinerojs/dinero.js

What it does

Format Dinero.js monetary values for display with currency symbols, locale awareness, and serialization.

Files

SKILL.mdMarkdownGitHub ↗

Dinero.js Formatting

Patterns for formatting Dinero.js monetary values for display. Covers currency symbols, locale-aware formatting, non-decimal currencies, and serialization.

When to Apply

Reference these guidelines when:

  • Displaying prices, totals, or monetary values in a UI
  • Adding currency symbols or locale-specific formatting
  • Formatting non-decimal currencies (e.g., historical currencies with non-base-10 subdivisions)
  • Serializing Dinero objects for APIs, databases, or transport
  • Building reusable formatting utilities

Rule Categories by Priority

PriorityCategoryImpactPrefix
1DisplayCRITICALdisplay-
2LocaleHIGHlocale-
3SerializationHIGHserialization-
4Non-DecimalMEDIUMnondecimal-

Quick Reference

1. Display (CRITICAL)

  • display-to-decimal - Use toDecimal for display strings, not toSnapshot
  • display-no-currency-symbols - Dinero.js does not format currency symbols; compose with Intl.NumberFormat

2. Locale (HIGH)

  • locale-intl-formatter - Build reusable formatters with Intl.NumberFormat
  • locale-multilingual - Create locale-parameterized formatters for multilingual sites

3. Serialization (HIGH)

  • serialization-snapshot - Use toSnapshot for transport and storage, not display
  • serialization-bigint-json - BigInt Dinero objects require a custom JSON replacer

4. Non-Decimal (MEDIUM)

  • nondecimal-to-units - Use toUnits for non-decimal currencies, not toDecimal

How to Use

Read individual rule files for detailed explanations and code examples:

rules/display-no-currency-symbols.md
rules/locale-intl-formatter.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.