JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q36532F
  • License MIT

A katty way to tell what it's like outside the warren

Package Exports

  • meerkats-weather

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (meerkats-weather) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Meerkats-Weather

A small module to query some basic data from the open weather maps API

Requirements

  • Node.js + npm

Usage

Command Line

To output the result directly to the console

  node ConsoleWeather.js --appId={appId} --cityId={cityId} --katify

or

  node ConsoleWeather.js --appId={appId} --cityId={cityId}

Code

  const appId = 'xxxxxxxxxxxxxxx';
  const cityId = 'xxxxxxxxxx';

  // Get some katified weather
  const katifiedWeather = require('meerkats-weather/MeerkatsWeather');
  katifiedWeather(appId, cityId)
    .then((output) => {
      console.log(output);
    })
  // Get some boring old weatherData
  const boringWeather = require('meerkats-weather/Weather');
  boringWeather(appId, cityId)
    .then((output) => {
      console.log(output);
    });
  // Your choice if you want to Katify or not
  const yourChoiceWeather = require('meerkats-weather');
  yourChoiceWeather(appId, cityId, {True or False})
    .then((output) => {
      console.log(output);
    });

Author

This repo is created and maintained by MEERKATS in PERTH, WESTERN AUSTRALIA.