Currency settings available (ISO_CODE): BRL, AED, USD, TRY
import Vue from "vue";
import ChatfoodCurrency from "@chatfood/vue-currency";
// Default Currency Settings
const settings = {
symbol: "
quot;,
thousand: ",",
precision: 2,
decimal: ".",
symbolFirst: true,
symbolSeparator: " "
}
Vue.use(ChatfoodCurrency, settings);
// or Vue.use(ChatfoodCurrency);
// Set settings on the fly anywhere inside your components
this.$currency.setConfig("ISO_CODE");
// Set settings on the fly anywhere on your project
Vue.currency.setConfig("ISO_CODE");
// Get current settings
Vue.currency.getConfig();
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build your for production
npm run build
# run unit tests
npm run test
# publish library on NPM (Check your version first before publish.)
npm publish