npm.io
2.22.7 • Published 4d ago

@medusajs/currency

Licence
MIT
Version
2.22.7
Deps
0
Size
27 kB
Vulns
0
Weekly
0
Stars
36.8K

Medusa logo

@medusajs/currency

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

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)

Resources