sun-moon-builder
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

sun-moon-builder

Retrieve sunrise/sunset, moonrise/moonset and create a graphic image

test.ts shows how to use the module

The normal use of this module is to build an npm module that can be used as part of a bigger progress.

index.d.ts describes the interface for the module

The LoggerInterface, KacheInterface and ImageWriterInterface interfaces are dependency injected into the module. Simple versions are provided and used by the test wrapper.

Once instanciated, the CreateImages() method can be called to create today's current chart.

To use the test wrapper to build a screen, run the following command.

$ git clone https://github.com/kfaubel/sun-moon-builder.git
$ cd sun-moon-builder
$ echo "IPGEOLOACATION_API_KEY=<key>" > .env
$ npm install
$ npm start

Dependencies

You will need an API key from https://api.ipgeolocation.io

Readme

Keywords

none

Package Sidebar

Install

npm i sun-moon-builder

Weekly Downloads

16

Version

1.1.2

License

ISC

Unpacked Size

404 kB

Total Files

29

Last publish

Collaborators

  • kfaubel