cldr-data-downloader

    0.3.5 • 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

    Install

    npm i cldr-data-downloader

    DownloadsWeekly Downloads

    45,851

    Version

    0.3.5

    License

    none

    Unpacked Size

    22.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar