@commercelayer/organization-config
TypeScript icon, indicating that this package has built-in type declarations

1.4.6 • Public • Published

organization-config

Organization config utils for extracting config by market.

How to use

pnpm add @commercelayer/organization-config

you can use the function getConfig to manipulate the configuration settings of your organization.

getConfig({
  jsonConfig: organizationConfig,
  market: 'market:id:hashid',
  params: { lang: 'en', orderId: 'your-order-id' }
})

The function is going to manipulate the organization configuration, extract the mfe key and merge default configuration with overrides for the market used.

/@commercelayer/organization-config/

    Package Sidebar

    Install

    npm i @commercelayer/organization-config

    Weekly Downloads

    140

    Version

    1.4.6

    License

    MIT

    Unpacked Size

    26.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • commercelayer.io
    • drpierlu