{"_id":"@brixtol/i18n","_rev":"6-d535c78b3e3add3465bcc0a3d6bee329","name":"@brixtol/i18n","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"@brixtol/i18n","version":"1.0.0","description":"Static GeoIP utility for generating basic i18n information from a country code.","author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"license":"MIT","main":"./dist/index.js","exports":{"require":"./dist/index.js","import":"./dist/index.es.js"},"types":"./index.d.ts","keywords":["countries","mappings","country","i18n","locale","geoip","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/i18n.git"},"bugs":{"url":"https://github.com/brixtol/i18n"},"node":{},"engines":{"pnpm":">=5"},"prettier":"@brixtol/prettier-config","eslintConfig":{"ignorePatterns":"package","extends":"@brixtol/eslint-config"},"ava":{"require":["esm"],"files":["test/*.js"],"concurrency":5},"devDependencies":{"@brixtol/eslint-config":"^1.0.1","@brixtol/prettier-config":"^1.2.0","@brixtol/rollup-config":"^1.4.0","@brixtol/tsconfig":"^1.0.1","esm":"^3.2.25","tslib":"^2.3.1","typescript":"^4.4.4"},"dependencies":{"@brixtol/country-names":"^1.1.2","@brixtol/currency-codes":"^1.1.1","@brixtol/currency-placements":"^1.1.0","@brixtol/currency-symbols":"^1.1.1"},"peerDependencies":{"tslib":"^2.3.1"},"scripts":{"dev":"rollup -c -w","build":"rollup -c --environment prod","build:all":"pnpm build --filter .","package":"cd versions; pnpm pack ../ && cd ..","test":"ava --watch --verbose"},"_resolved":"","_integrity":"","_from":"file:brixtol-i18n-1.0.0.tgz","homepage":"https://github.com/brixtol/i18n#readme","_id":"@brixtol/i18n@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-1L9Boz8kETRAGLdqpuNEHxgE3fN+NJ/j2fiDHW7oIEzxOkkoaRqD/qty+JL3Lkdiahc9M8HpRishXBlKFl/xaw==","shasum":"e80643a8fecb1093e5c1b6063a142c34ffb92cee","tarball":"https://registry.npmjs.org/@brixtol/i18n/-/i18n-1.0.0.tgz","fileCount":10,"unpackedSize":9048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG/ASHMzslpuZg6r7hTT2XawqUsSbKObxR92bHvK365wIgbfey0wlKRKPWvHxx2Hnk2yEIaBWF1cHUU6nn+4c9bhY="}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n_1.0.0_1635113441795_0.5412437174595455"},"_hasShrinkwrap":false},"1.1.0":{"name":"@brixtol/i18n","version":"1.1.0","description":"Static GeoIP utility for generating basic i18n information from a country code.","author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"license":"MIT","main":"./dist/index.js","exports":{"require":"./dist/index.js","import":"./dist/index.es.js"},"types":"./index.d.ts","keywords":["countries","mappings","country","i18n","locale","geoip","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/i18n.git"},"bugs":{"url":"https://github.com/brixtol/i18n"},"node":{},"engines":{"pnpm":">=5"},"prettier":"@brixtol/prettier-config","eslintConfig":{"ignorePatterns":"package","extends":"@brixtol/eslint-config"},"ava":{"require":["esm"],"files":["test/*.js"],"concurrency":5},"devDependencies":{"@brixtol/eslint-config":"^1.0.1","@brixtol/prettier-config":"^1.2.0","@brixtol/rollup-config":"^1.4.0","@brixtol/tsconfig":"^1.0.1","esm":"^3.2.25","tslib":"^2.3.1","typescript":"^4.4.4"},"dependencies":{"@brixtol/country-names":"^1.1.2","@brixtol/currency-codes":"^1.1.1","@brixtol/currency-symbol-placements":"^1.2.0","@brixtol/currency-symbols":"^1.1.1"},"peerDependencies":{"tslib":"^2.3.1"},"scripts":{"dev":"rollup -c -w","build":"rollup -c --environment prod","build:all":"pnpm build --filter .","package":"cd versions; pnpm pack ../ && cd ..","test":"ava --watch --verbose"},"_resolved":"","_integrity":"","_from":"file:brixtol-i18n-1.1.0.tgz","homepage":"https://github.com/brixtol/i18n#readme","_id":"@brixtol/i18n@1.1.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-uvnZ1/UDXJRWrMPF6bHQUdAkBanh34dcBQQ+KYLcc35YPz2YcM6MERk1dFhqiJJ40nNhwevsjdXtQfJYQAWcXQ==","shasum":"461aa50731b06985463076e30b8412eb4453c952","tarball":"https://registry.npmjs.org/@brixtol/i18n/-/i18n-1.1.0.tgz","fileCount":10,"unpackedSize":9055,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr8EFgn5zI3ngWii8oJfxllYCoS+v7PErwjKZLmiimAQIhAM1VcnKVe7pejorvJXf88Hwim8UyU9knY/1SsmlcFb3O"}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n_1.1.0_1635113609065_0.9854101680729235"},"_hasShrinkwrap":false},"1.2.0":{"name":"@brixtol/i18n","version":"1.2.0","description":"Static GeoIP utility for generating basic i18n information from a country code.","author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"license":"MIT","main":"./dist/index.js","exports":{"require":"./dist/index.js","import":"./dist/index.es.js"},"types":"./index.d.ts","keywords":["countries","mappings","country","i18n","locale","geoip","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/i18n.git"},"bugs":{"url":"https://github.com/brixtol/i18n"},"node":{},"engines":{"pnpm":">=5"},"prettier":"@brixtol/prettier-config","eslintConfig":{"ignorePatterns":"package","extends":"@brixtol/eslint-config"},"ava":{"require":["esm"],"files":["test/*.js"],"concurrency":5},"devDependencies":{"@brixtol/eslint-config":"^1.0.1","@brixtol/prettier-config":"^1.2.0","@brixtol/rollup-config":"^1.4.0","@brixtol/tsconfig":"^1.0.1","esm":"^3.2.25","tslib":"^2.3.1","typescript":"^4.4.4"},"dependencies":{"@brixtol/country-names":"^1.1.2","@brixtol/currency-codes":"^1.1.1","@brixtol/currency-symbol-placements":"^1.2.0","@brixtol/currency-symbols":"^1.1.1"},"peerDependencies":{"tslib":"^2.3.1"},"scripts":{"dev":"rollup -c -w","build":"rollup -c --environment prod","build:all":"pnpm build --filter .","package":"cd versions; pnpm pack ../ && cd ..","test":"ava --watch --verbose"},"_resolved":"","_integrity":"","_from":"file:brixtol-i18n-1.2.0.tgz","homepage":"https://github.com/brixtol/i18n#readme","_id":"@brixtol/i18n@1.2.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-4lL0q78BHTbkuFZlANG+OdYyzzMGqCjheM9HQvhKBgyI4Zb9kKOQVaAtUHnwj/fVgyCR3agXgAuhvPIhxZ1DxA==","shasum":"bcb67ee381988cb3315ab63802d1f865b12e3717","tarball":"https://registry.npmjs.org/@brixtol/i18n/-/i18n-1.2.0.tgz","fileCount":10,"unpackedSize":9053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPTMKMWYpo8Q4CttgMEZyRJwmPZ5vf6ctdpysyWAEycAiEAvUy/vR2S+Wr+zeXshKNMPN9zH/hJl4VxXa6wc5h8sPY="}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n_1.2.0_1635113672393_0.19179929633175585"},"_hasShrinkwrap":false},"1.2.1":{"name":"@brixtol/i18n","version":"1.2.1","description":"Static GeoIP utility for generating basic i18n information from a country code.","author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"license":"MIT","main":"./dist/index.js","exports":{"require":"./dist/index.js","import":"./dist/index.es.js"},"types":"./index.d.ts","keywords":["countries","mappings","country","i18n","locale","geoip","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/i18n.git"},"bugs":{"url":"https://github.com/brixtol/i18n"},"node":{},"engines":{"pnpm":">=5"},"prettier":"@brixtol/prettier-config","eslintConfig":{"ignorePatterns":"package","extends":"@brixtol/eslint-config"},"ava":{"require":["esm"],"files":["test/*.js"],"concurrency":5},"devDependencies":{"@brixtol/eslint-config":"^1.0.1","@brixtol/prettier-config":"^1.2.0","@brixtol/rollup-config":"^1.4.0","@brixtol/tsconfig":"^1.0.1","esm":"^3.2.25","tslib":"^2.3.1","typescript":"^4.4.4"},"dependencies":{"@brixtol/country-names":"^1.1.2","@brixtol/currency-codes":"^1.1.1","@brixtol/currency-symbol-placements":"^1.2.0","@brixtol/currency-symbols":"^1.1.1"},"peerDependencies":{"tslib":"^2.3.1"},"scripts":{"dev":"rollup -c -w","build":"rollup -c --environment prod","build:all":"pnpm build --filter .","package":"cd versions; pnpm pack ../ && cd ..","test":"ava --watch --verbose"},"_resolved":"","_integrity":"","_from":"file:brixtol-i18n-1.2.1.tgz","homepage":"https://github.com/brixtol/i18n#readme","_id":"@brixtol/i18n@1.2.1","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-L/LkKoaaUmS0xY/rL4+0dxcMIzKsOMe/aEM3lPNs35EQQEk2azboFYUt18gNRDPzgIHXSvliJTHCqzimK0UMiQ==","shasum":"ffcaca1345fc29c7e3d1fb78883b71619de4ad83","tarball":"https://registry.npmjs.org/@brixtol/i18n/-/i18n-1.2.1.tgz","fileCount":10,"unpackedSize":9166,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4+hCX5sBraqTiJaq1d/ovntLTmDfIatFmNwhdzxkq+AIgLa48bbEkwHuAvrGL3T4TqDz63e2zFpzmK30RsOFJbLY="}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n_1.2.1_1635114026585_0.03989597376447329"},"_hasShrinkwrap":false},"1.2.2":{"name":"@brixtol/i18n","version":"1.2.2","description":"Static GeoIP utility for generating basic i18n information from a country code.","author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"license":"MIT","main":"./dist/index.js","exports":{"require":"./dist/index.js","import":"./dist/index.es.js"},"types":"./dist/index.d.ts","keywords":["countries","mappings","country","i18n","locale","geoip","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/i18n.git"},"bugs":{"url":"https://github.com/brixtol/i18n"},"node":{},"engines":{"pnpm":">=5"},"prettier":"@brixtol/prettier-config","eslintConfig":{"ignorePatterns":"package","extends":"@brixtol/eslint-config"},"ava":{"require":["esm"],"files":["test/*.js"],"concurrency":5},"devDependencies":{"@brixtol/eslint-config":"^1.0.1","@brixtol/prettier-config":"^1.2.0","@brixtol/rollup-config":"^1.4.0","@brixtol/tsconfig":"^1.0.1","esm":"^3.2.25","tslib":"^2.3.1","typescript":"^4.4.4"},"dependencies":{"@brixtol/country-names":"^1.1.2","@brixtol/currency-codes":"^1.1.1","@brixtol/currency-symbol-placements":"^1.2.0","@brixtol/currency-symbols":"^1.1.1"},"peerDependencies":{"tslib":"^2.3.1"},"scripts":{"dev":"rollup -c -w","build":"rollup -c --environment prod","build:all":"pnpm build --filter .","package":"cd versions; pnpm pack ../ && cd ..","test":"ava --watch --verbose"},"_resolved":"","_integrity":"","_from":"file:brixtol-i18n-1.2.2.tgz","homepage":"https://github.com/brixtol/i18n#readme","_id":"@brixtol/i18n@1.2.2","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-VLzjaXpUnEU69qHavasKEjPLAh+/uydU41YNt1aAKD+EXpLazzJp0F6+crbLhKwCmI8vLkrOMl5px2yRV1N+dQ==","shasum":"dd58d92acabaff87ddf009e9224356dd390dcc92","tarball":"https://registry.npmjs.org/@brixtol/i18n/-/i18n-1.2.2.tgz","fileCount":10,"unpackedSize":8192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzaGbCRA9TVsSAnZWagAAvS0P/22bZaYaMteCSuAQeta6\n/q82EPbJNM3zLETeUJG/9Y9CK8D9rZOL2HHI2xPqUAmeFRPrmJ+KhuaDmTNb\nkvGJt+2UKCEt/woUgMcGpBcUgsT6k0KzYzMGzFwPCamnObckBVLKEBzOaBfW\noOAQzqdIEssF7VULJl1pknDTFPo6/qw92e0JfE54KiMF/9B7cKGbdvXLSq0n\nZzTH/R7/6yUfROmLExBM0Bc4hPehvC4VOuPym9OUui+E6QsmKs/rePkfzQ9B\n9yH/CGpGZgv2lC4+O7GVKAZKSkzaOlWlVezCxRmblqzGYc1u2jYac0WvM/Wc\nwsrJx5kL//myDR3PmsiK0ol47eL30OiuQCx9ptkuJDR3fSQu5GRBIrNr7E5Q\ndT85cHe7+W/Syc4cW22/x3xJXpIGq6PjNhfWjnv6bVWMKsOwo3DHSi0/aTgj\naldsVhhAFE+UUvoTIwD1EKE3MTjifN8ALV5CpuRey17nXaPoPPGRJ6IchGhK\ntgb6P8XI6pRWwZbuyUXpbBOvWJ3VSoO3kN55DEa/iMOqoRakIGROJdREDxCB\nVL0fYlS064zcuoBZ1iXWBk8leAXK120nwg8U/q5eTwp2OlC0Qvuzc8eC1Pdv\ndj/2056a0PlPiwB2jJnRntWcNrrRBhfZh/W/M43VUdzxTrJypWY4uDnDMDlc\nSynl\r\n=06r1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwARZ7CSG2ibX33qbQ053yVSSGsIsSDp1JkuxNo/HA1AiAFTZjh2pg1qr0oeSxq1q6R9L6hBhdZJIsAUnD2nxhotQ=="}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n_1.2.2_1635114517076_0.9483517502551058"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-24T22:10:41.734Z","1.0.0":"2021-10-24T22:10:41.973Z","modified":"2022-04-04T20:43:55.354Z","1.1.0":"2021-10-24T22:13:29.253Z","1.2.0":"2021-10-24T22:14:32.541Z","1.2.1":"2021-10-24T22:20:26.691Z","1.2.2":"2021-10-24T22:28:37.202Z"},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"description":"Static GeoIP utility for generating basic i18n information from a country code.","homepage":"https://github.com/brixtol/i18n#readme","keywords":["countries","mappings","country","i18n","locale","geoip","3166-1 alpha-2","ISO 36166"],"repository":{"type":"git","url":"git+https://github.com/brixtol/i18n.git"},"author":{"name":"Νίκος Σαβίδης","email":"n@brixtol.com","url":"https://brixtoltextiles.com"},"bugs":{"url":"https://github.com/brixtol/i18n"},"license":"MIT","readme":"## @brixtol/i18n\n\nStatic GeoIP utilities which accepts a **3166-1 alpha-2** country code and returns a JSON object with relevant Geographical information.\n\n### Why?\n\nThe vast majority of GeoIP services were doing too much or too little. We wanted a basic static powered GeoIP that would return exactly what we required in a fast and efficient manner. This project is composed from a series of small packages that map information from a series of datasets.\n\n### Install\n\n[pnpm](https://pnpm.js.org/en/cli/install)\n\n```cli\npnpm add @brixtol/i18n\n```\n\n[npm](https://www.npmjs.com/)\n\n```cli\nnpm install @brixtol/i18n\n```\n\n[Yarn](https://yarnpkg.com/)\n\n```cli\nyarn add @brixtol/i18n\n```\n\n## Usage\n\nPass in a currency code that is lowercase, uppercase or a mixture of both. There are 2 exports available, the `i18n` is a curried function which will allow for mutation of the response in the 2nd callback. If you do not need to mutate then your use the `geo` export which will return the default response.\n\n### Response\n\nThe i18n response will return the following response (locale) information:\n\n```ts\ninterface IGeoIP {\n  /**\n   * The 2 Letter country code\n   */\n  countryCode: string;\n  /**\n   * The Country Name (in English)\n   */\n  countryName: string;\n  /**\n   * The 3 letter Currency Code\n   */\n  currencyCode: string;\n  /**\n   * The Currency Symbol\n   */\n  currencySymbol: string;\n  /**\n   * The Currency Placement\n   */\n  currencyPlacement: string;\n}\n```\n\n### Example\n\n```ts\nimport { i18n, geo } from '@brixtol/i18n';\n\nconst default = geo('NL')\n// => IGeoIP\n\nconst mutator = i18n('NL')(locale => ({ ...locale, hello: 'hoi!' }))\n// => IGeoIP & { hello: 'hoi!' }\n```\n\n### Packages\n\nThis module constructs the response by using the following smaller modules:\n\n- [@brixtol/country-names](https://github.com/BRIXTOL/country-names)\n- [@brixtol/currency-codes](https://github.com/BRIXTOL/currency-codes)\n- [@brixtol/currency-placements](https://github.com/BRIXTOL/currency-symbol-placements)\n- [@brixtol/currency-symbols](https://github.com/BRIXTOL/currency-symbols)\n\n### License\n\nLicensed under [MIT](#LICENCE)\n\n---\n\nWe [♡](https://www.brixtoltextiles.com/discount/4D3V3L0P3RS]) open source!\n","readmeFilename":"readme.md"}