New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

greeting-time

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greeting-time

Get a greeting by the time of day

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
749
6.54%
Maintainers
1
Weekly downloads
 
Created
Source

greeting-time

Get a greeting by the time of day

Install

$ npm install greeting-time

Usage

const greetingTime = require("greeting-time");

greetingTime(new Date()); // Good morning, Good afternoon, or Good evening

Notes

  • "Morning" is from 5am until noon
  • "Afternoon" is from noon until 5pm
  • "Evening" is from 5pm until 5am

I didn't include "Night" because "Good night" doesn't feel like a greeting. It conveys more of a farewell, which isn't the intent of the greeting-time module.

License

MIT © Elijah Manor

FAQs

Package last updated on 25 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts