@comparaonline/ui-offer-entity-formatter
v5.8.0
Published
## Installation
Downloads
69
Maintainers
Keywords
Readme
@comparaonline/ui-offer-entity-formatter
Installation
yarn add @comparaonline/ui-offer-entity-formatter
Usage
import { entityFormatter } from '@comparaonline/ui-offer-entity-formatter';
const value = 10; // number, percentage
const type = 'number';
const format = {...};
formatter(value, type, format);
Supported entity types
- string
- number
- money
- percentage