cldr-data-downloader

1.1.0 • Public • Published

cldr-data-downloader

A Node.js download tool for Unicode CLDR JSON data.

Usage

$ npm install cldr-data-downloader

Using the CLI:

$ ./node_modules/cldr-data-downloader/bin/download.sh \
    -i http://www.unicode.org/Public/cldr/26/json.zip \
    -o ./cldr

GET `http://www.unicode.org/Public/cldr/26/json.zip`
  [========================================] 100% 0.0s
Received 3425K total.

Unpacking it into ./cldr
Done

Windows users can use node ./bin/download.js ... instead.

Using JavaScript:

// my-downloader.js:
cldrDownloader = require("cldr-data-downloader");
cldrDownloader(
  "http://www.unicode.org/Public/cldr/26/json.zip",
  "./cldr",
  function(error) {
    if (error) {
      console.error("Whops", error.message);
      exit(1);
    }
    console.log("Done");
  }
);
$ node < my-download.js

GET `http://www.unicode.org/Public/cldr/26/json.zip`
  [========================================] 100% 0.0s
Received 3425K total.

Unpacking it into ./cldr
Done

License

MIT © Rafael Xavier de Souza

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.0155latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.0155
1.0.1649
1.0.05
1.0.0-136,278
1.0.0-05
0.3.516,118
0.3.4204
0.3.343
0.3.299
0.3.117
0.3.06
0.2.541
0.2.45
0.2.35
0.2.25
0.2.15
0.2.05
0.1.37
0.1.26
0.1.15
0.1.05
0.0.96
0.0.85
0.0.75
0.0.65
0.0.55
0.0.45
0.0.35
0.0.25
0.0.16

Package Sidebar

Install

npm i cldr-data-downloader

Weekly Downloads

53,715

Version

1.1.0

License

none

Unpacked Size

24.3 kB

Total Files

14

Last publish

Collaborators

  • rxaviers