{"_id":"@data-sets/currencies","name":"@data-sets/currencies","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@data-sets/currencies","version":"1.0.0","description":"Static data-set of ISO 4217 currencies, with lookup methods for convenience.","type":"module","main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/someimportantcompany/data-sets.git"},"bugs":{"url":"https://github.com/someimportantcompany/data-sets/issues"},"homepage":"https://github.com/someimportantcompany/data-sets/tree/main/packages/currencies","author":{"name":"jdrydn","email":"james@jdrydn.com","url":"https://jdrydn.com"},"license":"MIT","keywords":["static","data","sets","currencies","iso4217"],"exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./data.json":"./data.json"},"engines":{"node":">= 18.0.0"},"scripts":{"lint":"eslint .","test":"vitest run --dir ."},"_id":"@data-sets/currencies@1.0.0","_integrity":"sha512-Pca9GnZxr/7d+qGwcW504i4MpLSgW9+VjuWuT2uGwMk4+Oy9tC63FMsTsuUuqGr+imaqw2EDICDmLu7vuVqHGQ==","_resolved":"/private/var/folders/vw/knq65j7j1j7b25swvcbbz9hm0000gn/T/1abeb289285e7a09119196f3fade5cff/data-sets-currencies-1.0.0.tgz","_from":"file:data-sets-currencies-1.0.0.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Pca9GnZxr/7d+qGwcW504i4MpLSgW9+VjuWuT2uGwMk4+Oy9tC63FMsTsuUuqGr+imaqw2EDICDmLu7vuVqHGQ==","shasum":"94ef0257a4539702ce0a6cd7bdf401074646767c","tarball":"https://registry.npmjs.org/@data-sets/currencies/-/currencies-1.0.0.tgz","fileCount":8,"unpackedSize":37273,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDsVsP+32AsF3B8xpulFrXjW/eVf1q2WdGuxgFwSNiatgIhAIIJgU2POeAXz6PX5ETggAQdTpPFxA4amkhKYnFj2WaD"}]},"_npmUser":{"name":"jdrydn","email":"james@jdrydn.com"},"directories":{},"maintainers":[{"name":"jdrydn","email":"james@jdrydn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/currencies_1.0.0_1773441290825_0.6748228510997611"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-13T22:34:50.750Z","1.0.0":"2026-03-13T22:34:50.996Z","modified":"2026-03-13T22:34:51.284Z"},"maintainers":[{"name":"jdrydn","email":"james@jdrydn.com"}],"description":"Static data-set of ISO 4217 currencies, with lookup methods for convenience.","homepage":"https://github.com/someimportantcompany/data-sets/tree/main/packages/currencies","keywords":["static","data","sets","currencies","iso4217"],"repository":{"type":"git","url":"git+https://github.com/someimportantcompany/data-sets.git"},"author":{"name":"jdrydn","email":"james@jdrydn.com","url":"https://jdrydn.com"},"bugs":{"url":"https://github.com/someimportantcompany/data-sets/issues"},"license":"MIT","readme":"# @data-sets/currencies\n\nStatic data-set of currencies (ISO 4217), with lookup methods for convenience.\n\n## Install\n\n```bash\nnpm install @data-sets/currencies\n# or\npnpm add @data-sets/currencies\n```\n\n## Usage\n\n```js\nimport { data, findByCode, findByName, findByCountry } from '@data-sets/currencies';\n\n// Find a currency by ISO 4217 alpha or numeric code\nconst usd = findByCode('USD');\n// { code: 'USD', numericCode: '840', name: 'US Dollar', symbol: '$', ... }\n\nconst gbp = findByCode('826');\n// { code: 'GBP', numericCode: '826', name: 'Pound Sterling', symbol: '£', ... }\n\n// Find a currency by name (case-insensitive)\nconst euro = findByName('euro');\n// { code: 'EUR', numericCode: '978', name: 'Euro', symbol: '€', ... }\n\n// Find all currencies used in a country (case-insensitive)\nconst japanese = findByCountry('Japan');\n// [ { code: 'JPY', name: 'Yen', symbol: '¥', ... } ]\n```\n\nA default export is also available:\n\n```js\nimport currencies from '@data-sets/currencies';\n\ncurrencies.findByCode('EUR');\n```\n\n## Data Shape\n\nEach record has the following shape:\n\n```ts\ntype CurrencyRecord = {\n  code: string;          // ISO 4217 alpha code (e.g. \"USD\")\n  numericCode: string;   // ISO 4217 numeric code (e.g. \"840\")\n  name: string;\n  symbol: string;        // e.g. \"$\", \"£\", \"€\"\n  decimalPlaces: number; // 0-3\n  countries: string[];   // Countries that use this currency\n};\n```\n\n## Raw Data\n\nYou can also import the raw JSON directly:\n\n```js\nimport data from '@data-sets/currencies/data.json';\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-ee0b789d76f42e3cbb4ea9ae86efc4d3"}