@medusajs/currency
Documentation | Website
Building blocks for digital commerce
Currency Module for Medusa: manages the currencies available in your store, such as their codes, symbols, and decimal digits. It loads Medusa's list of default currencies when the application starts. It ships with @medusajs/medusa and is registered by default, so you normally use it through the Medusa application rather than installing it directly.
At a glance
| Package | @medusajs/currency |
| Type | Commerce Module |
| Module key | Modules.CURRENCY ("currency") |
| Registered by default | Yes |
| Import from | @medusajs/medusa/currency |
Installation
No installation needed. The module ships with @medusajs/medusa and is registered by default.
Usage
Resolve the module's service from the container, for example in a workflow step:
import { Modules } from "@medusajs/framework/utils"
const currencyModuleService = container.resolve(Modules.CURRENCY)