In order to use, you will need to install econverse-utils
as a package:
yarn add econverse-utils
# npm install econverse-utils
For generic utilities, like formatMoney
, you should import directly from the library:
import { formatMoney } from 'econverse-utils'
For VTEX-specific utilities, like getProductById
, you should import from econverse-utils/vtex
:
import { getProductById } from 'econverse-utils/vtex'
This project is under the MIT license. See the LICENSE file for details