rxaviers / cldr-data-npm

Npm module for Unicode CLDR JSON data
MIT License
42 stars 28 forks source link

Improve downloads filtering #44

Closed puzrin closed 7 years ago

puzrin commented 7 years ago

Current method to restrict download via package.json has some disadvantages:

  1. It requires additional json file (not convenient) with relative path (strange).
  2. It freeze url versions. User should care about file versions update even after package was updated.

I'd suggest add support for regexp:

{
   "cldr-data-urls-filter": "(cldr-core|cldr-dates-modern|cldr-numbers-modern)"
}

I think that would be more simple and convenient for all.

rxaviers commented 7 years ago

LGTM, feel free to submit a PR.