parzh / iso4217

ISO-4217 as a JSON – https://www.iso.org/iso-4217-currency-codes.html
https://npmjs.org/package/@iso4217/json
MIT License
6 stars 1 forks source link

Give grouped data from functions #10

Open parzhitsky opened 1 year ago

parzhitsky commented 1 year ago

Currently, there is a way of grouping currency data by certain criteria (country name, currency code, etc.). The way it is done (predefine an environment variable and invoke the postinstall script) is at least a little bit unusual, and at most, it has some minor problems (like recalculating the grouped data at each npm i or npm ci).

To make the functionality more idiomatic, it might make sense to define a couple of utility functions that would return the grouped data as a return value.

parzhitsky commented 1 year ago

It might make sense to define a couple of utility functions

There are several considerations: