{"_id":"react-currency-flags","_rev":"3-a6e30a383a0d198fd44c05106800c49f","name":"react-currency-flags","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"react-currency-flags","version":"0.1.0","description":"React styled-component for currency flags","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","start":"webpack-dev-server --mode development --open --hot","test":"jest --config jest.config.json","lint":"tslint -p tsconfig.json","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/josephchang/react-currency-flags.git"},"keywords":["react","react-component","styled-components","component","currency","flags","ui","image"],"author":{"name":"joechang"},"license":"MIT","bugs":{"url":"https://github.com/josephchang/react-currency-flags/issues"},"homepage":"https://github.com/josephchang/react-currency-flags#readme","dependencies":{},"devDependencies":{"@types/jest":"^24.0.11","@types/react":"^16.8.14","@types/react-dom":"^16.8.4","@types/react-test-renderer":"^16.8.1","@types/styled-components":"4.1.8","awesome-typescript-loader":"^5.2.1","html-webpack-plugin":"^3.2.0","jest":"^24.7.1","jest-styled-components":"^6.3.1","react":"^16.8.6","react-dom":"^16.8.6","react-test-renderer":"^16.8.6","styled-components":"^4.2.0","ts-jest":"^24.0.2","tslint":"^5.16.0","tslint-config-prettier":"^1.18.0","typescript":"^3.4.5","webpack":"^4.30.0","webpack-cli":"^3.3.1","webpack-dev-server":"^3.3.1"},"peerDependencies":{"styled-components":"^4.2.0"},"gitHead":"d6a1083177bba344a1d12f3224eb2304db6313a9","_id":"react-currency-flags@0.1.0","_nodeVersion":"11.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Mw5eTCNRZwkgZQHovxMPcbA8VmowJH5EIiqg4OFyoLZcXQT3gPgoJEs2C2z4jeCC5Lhqo7462eBVU1oj43oZwA==","shasum":"1b30c4de632d2f4cbad38448b0d1eb405a481a72","tarball":"https://registry.npmjs.org/react-currency-flags/-/react-currency-flags-0.1.0.tgz","fileCount":10,"unpackedSize":172390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcweHVCRA9TVsSAnZWagAA9gAP/27YmtApIh6TiPjMeTaU\nfVWVwFozxAKivzXE2BRczWMklMXM4wM/1gWPvKPhYWBX8mBB+wVte4FjySQP\nWJ6J5x7VyHftADMChLM4tKp2ECKMlmL2fz1+83RaMdE5Z0pWs337zqV4ymDd\nVpARTSeiLszXKjab8wVKxG6Y53+UN9XcywvO9sN/5u37alCcpegHZx0gUjX6\n1GI0oDR/R6oesgrewCX+a286gYsYjSepuIFzzIDDAbNhTc5Mbn9Zdk6vRU58\nZ7h7qNNkmTRSr4FESdRgkCTHaHSzpcc20e+hfKkIqHMcfQOeOfn0ctuZAXMo\nQUiad0a3mkqBERgAKDqVEqu3AZjDPh5fYpEQa2Sl5iWYqV7t0FB+VY95iVEZ\nspgerZk6uPtO1IMobgpV2q9jkGw/44uKIT01YIbzr9MPwWqgnTdjVrsAazc5\nylp4CI4XdV5vAV08qO02RAlyG93GnkQuzL3dhvMITgfc5Z62fi4s03eQL6Nz\nvsHzNOhPJDqkp8QQaHH0/HL2zqZ7WPREz8bIA97qXOqruE3VUm2HoVWi016X\n9OvIY4Jy/X7nF+aJ6jqEBK16D0OilbLT1qnXliPDtJHReywgElcWmB7HTrsq\nq/6VMsGztkFozWPDEs6DoAdfaRjAmdPllzy/24REzkWCk//jrqGdVtRKde8g\nYVW5\r\n=HDOK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwtxT4gHY2bKeI0ipbXolGVkTj3GHnzj8D6wJCqh0BeAiEAgg8RDu31PrgnRpJWCO9GCOyIaey2RyJZs8tCDp/bd1o="}]},"maintainers":[{"name":"joechang","email":"josephchang@outlook.com"}],"_npmUser":{"name":"joechang","email":"josephchang@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-currency-flags_0.1.0_1556210132660_0.9652831822799439"},"_hasShrinkwrap":false},"0.1.1":{"name":"react-currency-flags","version":"0.1.1","description":"React styled-component for currency flags","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","start":"webpack-dev-server --mode development --open --hot","test":"jest --config jest.config.json","lint":"tslint -p tsconfig.json","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/josephchang/react-currency-flags.git"},"keywords":["react","react-component","styled-components","component","currency","flags","ui","image"],"author":{"name":"joechang"},"license":"MIT","bugs":{"url":"https://github.com/josephchang/react-currency-flags/issues"},"homepage":"https://github.com/josephchang/react-currency-flags#readme","dependencies":{},"devDependencies":{"@types/jest":"^24.0.11","@types/react":"^16.8.14","@types/react-dom":"^16.8.4","@types/react-test-renderer":"^16.8.1","@types/styled-components":"4.1.8","awesome-typescript-loader":"^5.2.1","html-webpack-plugin":"^3.2.0","jest":"^24.7.1","jest-styled-components":"^6.3.1","react":"^16.8.6","react-dom":"^16.8.6","react-test-renderer":"^16.8.6","styled-components":"^4.2.0","ts-jest":"^24.0.2","tslint":"^5.16.0","tslint-config-prettier":"^1.18.0","typescript":"^3.4.5","webpack":"^4.30.0","webpack-cli":"^3.3.1","webpack-dev-server":"^3.3.1"},"peerDependencies":{"styled-components":"^4.2.0"},"gitHead":"0ddccc09149281c5b558456f2f30cdc6fc4fdb8e","_id":"react-currency-flags@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"joechang","email":"josephchang@outlook.com"},"dist":{"integrity":"sha512-3HmUY0Zohq2ulIvQSta/0uPfmHhMhZ+9asUlpv1vXtbstej3tL//r41ki5hieGM9zwEQR5gEFWr5FeG7Bmrgdg==","shasum":"cf242106c548e927220fddc5fc9459b286856b9d","tarball":"https://registry.npmjs.org/react-currency-flags/-/react-currency-flags-0.1.1.tgz","fileCount":10,"unpackedSize":171889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU+zmCRA9TVsSAnZWagAA9OMP/2LPSyk/eFgOr+9hXBxQ\nSctV21nbei+G9xLZskOcvpC2cO59T866PbE6Czj0QkKacf9tmIARYKbDvHu0\nZWUJt9JY+iF/qDZfEXlU62FByyFLZPmiwrPjFAPF6aPZb5w5xHcs9DGjojTI\nvwQQBIVqIZ0Fqwd580RywXxqmt1fG4LrXw4LskAheGZ4DAVCkvNfRkYMer3w\nTsAoNRLxiO2S+2BgfOhBMlbSAZ0SNN0XQ6/08gh99aecUPJwLJoDxH0GIDT7\n2vswP/1ToptQ7XOLeDPSLszfypBNeclKr3r6Ib46BGcvBsoSdFmkMn3SN00c\nn9bxM1Tmu4Ra2EYFB+aFepneiUc9eN3Ymz4IDPpnIkmMLM5FUtsTfFvOAkSg\n3Mii2T+bpEtGXbKiWf8drYYuq33oyIfxFxUwQ0br4J3pgjldEH3pLbtTTlT7\nom72V+fA846QzLFfF7eCI2VBt9gvytImbCzRXb8JCLuEu29j4mypDj/Ae7Yl\nOsZM0P6pOkgZUP9CdYkNuNdNjNsUFs6z3r1WvS4r2NN9x6wUxggp4NDPv7bw\nkx1PcfklnKEX/nkqXMQQ2rncVLuXOZhGsKhP20DRMaMzSdMOSD095o1OKLfe\ncNXCv+rkcMav4k4q85fSNSZSvz4KCmD7CwLA/C49J8Pe7Eo6hBZgOQTTQtaZ\nms5M\r\n=PC04\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa2ArQZRCJ8x7Av4YIdt7rHgmdb11cfld2N0yS9kJvngIhAKJF1HOgjGkE62LWUvlf2HcxX25elq06JBj8pbORnEnH"}]},"maintainers":[{"name":"joechang","email":"josephchang@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-currency-flags_0.1.1_1565781222194_0.9330603908533579"},"_hasShrinkwrap":false},"0.1.2":{"name":"react-currency-flags","version":"0.1.2","description":"React styled-component for currency flags","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","start":"webpack-dev-server --mode development --open --hot","test":"jest --config jest.config.json","lint":"tslint -p tsconfig.json","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/josephchang/react-currency-flags.git"},"keywords":["react","react-component","styled-components","component","currency","flags","ui","image"],"author":{"name":"joechang"},"license":"MIT","bugs":{"url":"https://github.com/josephchang/react-currency-flags/issues"},"homepage":"https://github.com/josephchang/react-currency-flags#readme","dependencies":{},"devDependencies":{"@types/jest":"^25.2.2","@types/react":"^16.8.14","@types/react-dom":"^16.8.4","@types/react-test-renderer":"^16.8.1","@types/styled-components":"4.1.8","awesome-typescript-loader":"^5.2.1","html-webpack-plugin":"^3.2.0","jest":"^26.0.1","jest-styled-components":"^6.3.1","react":"^16.8.6","react-dom":"^16.8.6","react-test-renderer":"^16.8.6","styled-components":"^4.2.0","ts-jest":"^25.5.1","tslint":"^5.16.0","tslint-config-prettier":"^1.18.0","typescript":"^3.4.5","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-dev-server":"^3.3.1"},"peerDependencies":{"styled-components":"^4.2.0"},"gitHead":"22af9f869f445a36666f551a056bc6f62afb4908","_id":"react-currency-flags@0.1.2","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-p51uPd3hPe6gTigLNZusTjiurXiau1wxnGZyQkwZFTptWhuai+KG//kAwZaCWp0zzNI7sfjKUPXw4fVbi8ep8g==","shasum":"bf472d54dd1d4b3b0c931e8ea0ba7c50b7b81f09","tarball":"https://registry.npmjs.org/react-currency-flags/-/react-currency-flags-0.1.2.tgz","fileCount":10,"unpackedSize":171889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevTzUCRA9TVsSAnZWagAA5toP/1Qs1kLSmqFthVZsmYpv\nUJ0/srGyh5YK/qyWys75xJVhKj8mqB+YHfT5MUqL3llA/5C3Kyc658iUmsdC\ndo96iRZxxtYKhZklXO1IVh0hOBY9hRhZG1nvcIKO0h7FvfeXKTwe9IC0uvky\nA+/tPU9legFMc4uq/bWtwCfJtCeTLPYW8qlkYkPBwJ5b6PbWebQPYtP55cZQ\nuLNMIhSDIYyTIJlCD5DUCqA7Xkf5R73esSbdMq2qrw0abKDIJNzUyJHHYnTl\ng5NX1/vuGRdcva+YOXJRFqGi53Vmj3qBdjNLf/yBHqlxQOO+wW0h7GR4NhCe\n4wNVw/1uMLmk1TOG7iXzxO1PDtuWxMNvYw1/Sg5LHLbzBKF+GxFJTUMrakyE\nOOwcsMW2ulywOlHLihLIjzhu47PV5pRCZ3Yiz4LBrXXqBn/x7ADHOtj1ToaZ\nWHOT9mqhRRNvEPF4j0C9/ntU9H36tchs1dtnoXZ30Ypc/0WCWYXqswD9sUns\nGu3j7KaPu+iJR+uiOgrqtF+vVitK5lGv7umCpTc3CTxxw2F1SOvAlTnif1gP\nff27QbhIYxOPc9IqAdvUUEhURow2BpZUZZDKNlB3Ns8Z6AhjC2cX28QgCanW\noHdTyar7jn2yg4GBetVqqkCQkDJRLnOrfKfsiOw4oif99Kg2XDUDYYfD6jGM\n/ZO2\r\n=5neN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBa/Pzszs6wAhPXtEJFhyx9pzVC5YHnrUF6E8/6auivAiBVbY8J1Y3Vi4mnsnszx96gegERM84L2VoD//9u8IOsdw=="}]},"maintainers":[{"name":"joechang","email":"josephchang@outlook.com"}],"_npmUser":{"name":"joechang","email":"josephchang@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-currency-flags_0.1.2_1589460180301_0.8226053395953865"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-25T16:35:32.660Z","0.1.0":"2019-04-25T16:35:32.788Z","modified":"2022-05-14T08:53:23.104Z","0.1.1":"2019-08-14T11:13:42.339Z","0.1.2":"2020-05-14T12:43:00.448Z"},"maintainers":[{"name":"joechang","email":"josephchang@outlook.com"}],"description":"React styled-component for currency flags","homepage":"https://github.com/josephchang/react-currency-flags#readme","keywords":["react","react-component","styled-components","component","currency","flags","ui","image"],"repository":{"type":"git","url":"git+https://github.com/josephchang/react-currency-flags.git"},"author":{"name":"joechang"},"bugs":{"url":"https://github.com/josephchang/react-currency-flags/issues"},"license":"MIT","readme":"# React currency flags\n\n## What is this?\n\nUsing the images from [transferwise/currency-flags](https://github.com/transferwise/currency-flags), this library uses `styled-components` to create React components for use in your app. Please be aware that the images are in base64 format, so if you are concerned with the bundle size, I suggest that you clone the aforementioned TransferWise's repo and store it in a CDN solution of your own (the distributed format that repo is also base64 when built, so simply installing that module won't work).\n\n## Installation\n\n### Yarn\n\n```sh\n$ yarn add react-currency-flags\n```\n\n### NPM\n\n```sh\n$ npm install react-currency-flags\n```\n\n## Usage\n\n```js\nimport CurrencyFlag from 'react-currency-flags';\n\nconst CurrencyFlagComponent1 = () => <CurrencyFlag currency=\"USD\" size=\"sm\" />;\n\nconst CurrencyFlagComponent2 = () => <CurrencyFlag currency=\"EUR\" width={38} />;\n```\n\n- **currency** (_required_, string): 3-letter ISO 4217 currency code (https://en.wikipedia.org/wiki/ISO_4217)\n- **size** (_optional_, string): The predefined size to use; possible values are `sm`, `md`, `lg`, `xl`\n- **width** (_optional_, number): The width of the flag, height will be calculated to keep aspect ratio if no height value is provided\n- **height** (_optional_, number): The height of the flag, width will be calculated to keep aspect ratio if no width value is provided\n\nYou should provide either the `size`, or `width` or `height`; `size` will take precedence if all values are provided.\n\nSee examples in the `examples` folder.\n\n## Why not SVG?\n\nWhile SVG provides the advantage of scaling, but some flags, such as Mexico's, are very complicated graphically, and would therefore create incredibly large file sizes.\n","readmeFilename":"README.md"}