jnltc
v1.0.3
Published
Convert navigator.language to currency code. en-US -> USD
Downloads
1
Maintainers
Readme
Locale to Currency converter
Convert navigator.language
to currency code. en-US
-> USD
npm i jnltc
const jnltc = require('jnltc')
console.log(jnltc.langToCurr('en-US'))
// { code: 'USD', name: 'US Dollar', locale: 'en-US' }