Open parzhitsky opened 1 year ago
It might make sense to define a couple of utility functions
There are several considerations:
data-grouped-by-*.json
file, but there is a new trigger for that now - a correspondent function call). The file has to then be imported/read/parsed manually.
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 eachnpm i
ornpm 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.