0.3.1 • Published 5 years ago

heavens-above v0.3.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

heavens-above

Build Status Codecov Greenkeeper badge npm license

An unofficial package to get data on www.heavens-above.com with TypeScript.

Installing

npm i heavens-above

Example

const { HeavensAbove } = require("heavens-above");
// import HeavensAbove from "heavens-above";
const fs = require("fs");

const ha = new HeavensAbove({
    latitude: 40,
    longtitude: 116,
    elevation: 50
});

(async () => {
    const skyChartURL = await ha.getSkyChartURL();
    const skyChart = await ha.getImageStream(skyChartURL);
    skyChart.pipe(fs.createWriteStream("sky-chart.png"));
})();

More example

API

View at https://littlepiggy03.github.io/heavens-above/

0.3.1

5 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago