0.0.2 • Published 1 year ago
rn-currency-formatter v0.0.2
rn-currency-formatter
This is React Native library that helps convert currency symbols into their corresponding ISO currency codes, country names, and amounts, and also works in reverse.
Installation
npm install rn-currency-formatteror
yarn add rn-currency-formatterUsage
import { getSymbolInfo, getCodeInfo } from 'rn-currency-formatter';
// ...
const symbolInfo = await getSymbolInfo("$14.6");
const codeInfo = await getCodeInfo("USD 14.6");
// console.log("result : ", symbolInfo or codeInfo)
output = {
"symbol": "$",
"currency_code": "USD",
"country": "United States Dollar",
"country_code": "US"
"amount": 14.6
}Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
qblcoipmsrcwsynajvargdelgotinijoiob1oratmpvlqvm2asapbserdepddiffetagexitglobgopdjsbnkeyvlevnmeowmimeonceopenpifypumppuparxjssendtemptmpltr46varyy18nyamlacornanserboxenbyteschalkcliuiclonedargsdayjsdebugexecafastqfreshis-ciisexejsescjson5kleurlevenmarkymetrop-mapp-tryqueueretryslashsockssplittslibwhichxtendyargsarrifybracesbufferdedentespreeexpectgit-upglobbyhasownignoreis-mapis-npmis-objis-setis-sshis-wsllodashmerge2mkdirprecastredentrimrafsemversplit2strnumterserthroatunpipeuri-jswalkerwrappyacceptschardetci-infoconnectcsstypedeep-isdestroyenvinfoesprimaesqueryesutilsfiguresfind-upflattedgensyncget-uriglobalsieee754is-globisarrayjs-yamlkind-ofmap-objmime-dbnetmasknocacheonetimeos-namep-limitpiratespkg-dirpromisepromptsrechoirresolvereusifyshelljsthroughts-nodetsutilswcwidthyallistanymatchargparsedefaultsdir-globdoctrinedot-propee-firstemitteryerror-exescaladefast-urifor-eachfs-extrafseventshas-flaghas-yarninflightinheritsinquireris-regexisobjectjest-clijetifierjsonfilelogkittymake-dirmimic-fnminimistnode-dirp-locateparseurlpath-keypunycodereact-isread-pkgreadlineregjsgenstatusestemp-dirthrough2titleizeurl-joinwordwrapacorn-jsxappdirsjsarray-ifyast-typesbase64-jsbasic-ftpcall-bindcallsitescamelcasecli-boxescli-widthcolorettecommandercommondirdeepmergedenodeifyencodeurles-errorsescodegenesrecursefast-difffast-globgraphemerhas-protointerpretinvariantis-bigintis-dockeris-numberis-streamis-stringis-symboljest-diffjest-eachjest-mockjest-utiljs-tokensjsonparselru-cachemakeerrorminimatchneo-asyncos-tmpdirparse-urlpath-typepicomatchprotocolsquick-lrurun-asyncschedulerstrip-bomtype-festuglify-jsuntildifyword-wrapwrap-ansiJSONStreamacorn-walkadd-streamagent-baseansi-alignansi-regexbabel-corebabel-jestchar-regexcli-cursorclone-deepcolor-nameconcat-mapdateformatdecamelizeestraversefetch-blobfill-rangeflat-cacheget-streamglobalthishandlebarsiconv-liteimage-sizeip-addressis-extglobis-weakmapis-weakrefis-weaksetis-windowsmake-errormetro-coremicromatchmime-typesmin-indentnegotiatornode-fetchnode-forgenode-int64nullthrowson-headersoptionatorparse-jsonparse-pathpath-parsepicocolorsprelude-lsprop-typesproto-listregenerateselfsignedsisteransislice-ansisource-mapsprintf-jsstackframestrip-ansitext-tabletype-checktypedarraywhatwg-urlansi-stylesarray-unionasync-retrybig-integerbuffer-frombundle-namecaller-pathclean-stackcompressionconfigstorecosmiconfigcross-spawndeep-extenddegeneratordeprecationemoji-regexes-abstractescape-goatescape-htmlfb-watchmanflow-parserfs.realpathglob-parentglobal-dirsgraceful-fshas-bigintshas-symbolshttp-errorsimport-lazyimurmurhashis-absoluteis-arrayishis-callableis-path-cwdis-relativeis-unc-pathjest-circusjest-configjest-runnerjest-workerjsc-androidjscodeshiftjson-bufferlocate-pathlodash.uniqlog-symbolsmemoize-onemetro-cachemute-streamobject-keyson-finishedpath-existsproxy-agentquerystringread-pkg-upregjsparserresolve-cwdsafe-buffersemver-diffshell-quotesignal-exitstack-utilssudo-prompttype-detectutils-mergewidest-linexdg-basediryocto-queueansi-escapesastral-regexbrowserslistcaniuse-litecli-spinnerscompare-funccompressibleconfig-chaincore-util-iserrorhandlereslint-scopefinalhandlerget-pkg-repohtml-escaperimport-freshimport-localis-argumentsis-data-viewis-directoryis-git-dirtyis-plain-objis-text-pathissue-parserjest-resolvejest-runtimejest-watcherjsc-safe-urllodash.mergeloose-envifymerge-streammetro-confignpm-run-pathp-cancelablepac-resolverpackage-jsonrange-parserregexpu-coreregistry-urlresolve-alpnresolve-fromresponselikerun-parallelsafer-bufferserve-staticset-blockingside-channelsmart-bufferspdx-correctstring-widthstrip-indenttest-excludetoidentifierundici-typesuniversalifywhatwg-fetchwhich-moduleyargs-parserasync-limiterbplist-parsercolor-convertconcat-streamend-of-streamfunction-bindget-intrinsicgit-url-parsehermes-estreehermes-parserhttp2-wrapperhuman-signalsindent-stringinternal-slotis-typedarrayiterate-valuejest-docblockjest-get-typejest-snapshotjest-validatejsx-ast-utilslodash.uniqbymacos-releasemetro-runtimemodify-valuesnode-releasesnormalize-urlobject-assignobject.assignobject.valuesparent-modulepretty-formatreact-refreshshallow-cloneshebang-regexstring-lengthterminal-linktrim-newlinesunique-stringansi-fragmentsarray-includesbalanced-matchcamelcase-keyscommand-existscore-js-compatcreate-requiredetect-newlinediff-sequenceseastasianwidthfind-cache-dirgitconfiglocalhard-rejectionis-core-moduleis-date-objectis-interactiveis-path-insideis-typed-arrayis-yarn-globaljest-haste-maplatest-versionload-json-filelodash.ismatchlowercase-keysmetro-file-mapmetro-resolvermimic-responsenormalize-pathobject-inspectobject.entriesproxy-from-envresolve-globalrestore-cursorsetprototypeofstring_decodersupports-colorto-regex-rangeunc-path-regexutil-deprecatev8-to-istanbulwildcard-matchaggregate-errorbrace-expansioncaller-callsitechrome-launcherdecamelize-keysdefault-browseres-get-iteratores-object-atomses-to-primitiveexternal-editorfast-deep-equalfast-xml-parserget-caller-filegit-raw-commitsgit-semver-tagshas-tostringtaghosted-git-infois-array-bufferis-generator-fnis-plain-objectjest-regex-utillodash.debouncelodash.isstringlodash.throttlemetro-cache-keynatural-comparenode-stream-zippac-proxy-agentqueue-microtaskreadable-streamresolve.exportsrun-applescriptsafe-regex-testserialize-errorshebang-commandspdx-exceptionsstdin-discardertext-extensionsunbox-primitiveupdate-notifierwindows-releaseabort-controllercacheable-lookupcjs-module-lexerdata-view-bufferdefer-to-connectdefine-lazy-propfast-levenshteinfile-entry-cacheget-package-typehttp-proxy-agentis-negative-zerois-number-objectistanbul-reportsiterate-iteratorlodash.camelcaselodash.kebabcaselodash.mergewithlodash.snakecaselodash.startcasemetro-source-mapminimist-optionspath-is-absolutespdx-license-idswhich-collectionbabel-preset-jestbefore-after-hookcacheable-requestdefine-propertiesevent-target-shimform-data-encoderformdata-polyfillhttps-proxy-agentis-async-functionis-boolean-objectis-git-repositoryjest-message-utiljest-pnp-resolverlighthouse-loggerlines-and-columnslodash.capitalizelodash.isfunctionlodash.upperfirstmetro-symbolicatenode-domexceptionrequire-directorysafe-array-concatset-function-namesocks-proxy-agentstacktrace-parserwhich-typed-arraywrite-file-atomicconvert-source-mapdata-uri-to-bufferdefault-browser-iderror-stack-parseres-define-propertyes-set-tostringtageslint-plugin-jestflow-enums-runtimeiterator.prototypejest-changed-filesjest-leak-detectorjest-matcher-utilsobject.fromentriespromise.allsettledsource-map-supportto-fast-propertiestyped-array-buffertyped-array-lengthwebidl-conversionswhich-builtin-typearray.prototype.mapcollect-v8-coveragedecompress-responsees-iterator-helperses-shim-unscopableseslint-plugin-reacteslint-visitor-keysexponential-backoffis-inside-containeristanbul-lib-reportjson-stringify-safelodash.escaperegexpmetro-minify-terserreact-devtools-coreregenerator-runtimeregistry-auth-tokenrequire-from-stringset-function-lengthstrip-final-newlinestrip-json-commentssupports-hyperlinksarray.prototype.flatcrypto-random-stringdefine-data-propertyelectron-to-chromiumescape-string-regexpfunctions-have-nameshttp-cache-semanticsis-unicode-supportedjson-schema-traverselodash.isplainobjectnatural-compare-liteprocess-nextick-argstypedarray-to-bufferuniversal-user-agentv8-compile-cache-libweb-streams-polyfillbabel-plugin-istanbuldata-view-byte-lengthdata-view-byte-offseteslint-plugin-ft-flowgit-remote-origin-urlis-generator-functionis-installed-globallyistanbul-lib-coveragejest-environment-nodenode-abort-controllerregenerator-transformrequire-main-filenamespdx-expression-parsestring.prototype.trimwhich-boxed-primitiveavailable-typed-arraysconventional-changelogget-symbol-descriptionis-shared-array-buffermetro-transform-workernew-github-release-urlnormalize-package-datareact-shallow-rendererreflect.getprototypeofregexp.prototype.flagsstring-natural-compareupdate-browserslist-dbarray.prototype.flatmapbabel-plugin-jest-hoistfunction.prototype.nameis-finalizationregistryis-fullwidth-code-pointistanbul-lib-instrumentmetro-babel-transformermetro-transform-pluginsprettier-linter-helpersstop-iteration-iteratorstring.prototype.repeattyped-array-byte-lengthtyped-array-byte-offsetarray-buffer-byte-lengtharray.prototype.findlastarray.prototype.tosortedhas-property-descriptorsistanbul-lib-source-mapsjson-parse-better-errorsstring.prototype.trimendeslint-plugin-react-hooksjest-resolve-dependenciesstring.prototype.matchalleslint-plugin-react-nativefast-json-stable-stringifyhermes-profile-transformerpossible-typed-array-namesstring.prototype.trimstartarraybuffer.prototype.sliceconventional-changelog-atomconventional-changelog-coreconventional-commits-filterconventional-commits-parserconventional-changelog-embervalidate-npm-package-licensebabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3conventional-changelog-eslintconventional-changelog-jqueryconventional-changelog-jshintconventional-changelog-writerconventional-recommended-bumpcosmiconfig-typescript-loadereslint-plugin-eslint-commentsjson-parse-even-better-errorsregenerate-unicode-propertiesconventional-changelog-angularconventional-changelog-expresses-array-method-boxes-properlysupports-preserve-symlinks-flagbabel-preset-current-node-syntaxbabel-plugin-polyfill-regeneratorbabel-plugin-transform-flow-enumsconventional-changelog-codemirrorunicode-match-property-ecmascripteslint-plugin-react-native-globalsunicode-property-aliases-ecmascriptconventional-changelog-preset-loaderjson-stable-stringify-without-jsonifyunicode-match-property-value-ecmascriptconventional-changelog-conventionalcommitsunicode-canonical-property-names-ecmascript