const { currency } = require('expresso-core')
import { currency } from 'expresso-core'
import { currency } from 'expresso-core'
const result = currency.format({
nominal: 125000,
options: { locale: 'id-ID', currency: 'IDR' },
})
console.log(result)
// output :
'Rp 125.000'
import { currency } from 'expresso-core'
const result = currency.format({ nominal: 125000 })
console.log(result)
// output :
'125.000'