@elijahjcobb/dark-sky
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

dark-sky

A working TypeScript library for darksky.net providing all types and uses promises.

Example

const api: DarkSky = new DarkSky("api-key", 0, 0);

const currently: DarkSkyReportCurrently = await api.getCurrently();
const minutely: DarkSkyReportMinutely = await api.getMinutely();
const hourly: DarkSkyReportHourly = await api.getHourly();
const daily: DarkSkyReportDaily = await api.getDaily();
const alerts: DarkSkyReportAlerts = await api.getAlerts();
const flags: DarkSkyReportFlags = await api.getFlags();
const allCategories: DarkSkyReport = await api.get();

Types

All types were last updated 3/20/2020 from the DarkSky Docs.

Documentation

Everything is completely documented. You can view the source code on GitHub.

Bugs

If you find any bugs please create an issue on GitHub or if you are old fashioned email me at elijah@elijahcobb.com.

Package Sidebar

Install

npm i @elijahjcobb/dark-sky

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

17 kB

Total Files

9

Last publish

Collaborators

  • ejc