JSPM

darksky

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

Dark Sky API wrapper for nodeJS

Package Exports

  • darksky

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

Readme

Node.js Dark Sky API wrapper

Build Status

About

A Node.js module for integrating with the Dark Sky API. You must acquire an API key to use it.

Installation

The project is hosted on npm

npm install darksky

Usage

Create a client and then call one of the exposed methods. See the Dark Sky API for details.

var darksky = require("darksky");
var client = darksky.Client("mykey");
  
client.forecast('37.8267','-122.423', 
    function(err, data) {
        if (err) {
            console.error(err);
        }
        process.stdout.write(data);
    }
);

Copyright (c) 2012 Aaron Westendorf. See LICENSE for further details.