JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q38726F
  • License ISC

Get daytime and nighttime based on the zipcode

Package Exports

  • gettimeofday-by-zipcode

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

Readme

what is this?

Get daytime and nighttime based on the zipcode

Installation

   npm install gettimeofday-by-zipcode
   npm install moment-timezone
   npm install zipcode-to-timezone
const timeOfTheday = require('gettimeofday-by-zipcode');
const ZIP_CODE = "01850";

timeOfTheday.getTimeofTheDays(ZIP_CODE);

Description

The code above will return either a daytime or nighttime depending on the current time of the zipcode.