JSPM

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

Simple wrapper for OpenWeatherMap API

Package Exports

  • node-clima

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 (node-clima) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

node-clima

Simple wrapper for OpenWeatherMap API for Node.js

Methods API call:

currentByCityName You can call by city name or city name and country code. API responds with a list of results that match a searching word. currentByCityId

currentByCoordinates

currentByZip

for more info http://openweathermap.org

Usage:

var clima = require('node-clima');

var c = new clima({ format: 'json', // required apikey: 'your api key' // REQUIRED units: 'Celsius' // optional });

c.currentByCityName({
cityName: 'London',
    callback: function(err, data) {
        console.log(data);
    }
});