My goal
Get json files from CLDR packages. But obviously not all of them (there are some configuration files) - just the real data.
Idea
As I can see, they're configured for bower. There is also a pattern, which describes where to find those json files within a repository:
{
"name": "cldr-dates-full",
"version": "29.0.0",
"dependencies": {
"cldr-numbers-full": "29.0.0"
},
"main": "main/**/*.json",
"ignore": [
".gitattributes",
"README.md"
]
}
Thus - is it possible to easily download bower packages to a .NET application?
Naive approach
Download each repository, find the bower.json
file, navigate to the main
property, parse the pattern, extract the files. Very ugly.
Any advice would be very welcome. Thanks!