Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getCountry: function (name) {
if (name) {
var countries = require('i18n-iso-countries')
return '/assets/images/countries/' + countries.getAlpha2Code(countries.getName(name, 'en'), 'en').toLowerCase() + '.png'
}
return null
},
getCountryName: function (name) {
getCountry: function(name) {
if (name) {
var countries = require("i18n-iso-countries");
return (
"/assets/images/countries/" +
countries
.getAlpha2Code(countries.getName(name, "en"), "en")
.toLowerCase() +
".png"
);
}
return null;
},
getFormattedDate: function(date) {