Neverending Prototype Mode

    @modern-dev/daylight
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    Daylight

    Build Status codecov npm NPM

    Daylight - is a tiny JavaScript library for basic sun/moon position/times/phase calculations.

    $ npm install -save @modern-dev/daylight

    📋 Usage

    import { sun, moon } from '@modern-dev/daylight';
    
    const sunPosition = sun.getPosition(new Date(), 90.0, 45.0);
    console.log('Sun\'s altitude at the South Pole is ', sunPosition.altitude);
    
    const moonPahse = moon.getPhase(new Date());
    console.log('Today\'s moon phase is ', moonPhase.phase);

    🎓 API Reference

    Will be added soon.

    📗 License

    Licensed under the MIT license.

    Copyright (c) 2020 Bohdan Shtepan


    modern-dev.com  ·  GitHub @virtyaluk  ·  Twitter @virtyaluk

    Install

    npm i @modern-dev/daylight

    DownloadsWeekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    86.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • virtyaluk