dtgreeter
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

dtgreeter - Day Time Greeter

A utility function that returns a string greeting according to the users local daytime.

Good morning | afternoon | evening | night.

Can recieve an optional parameter which is the name of the user.

If no user provided returns ex: 'Good morning'

If user is provided returns ex: 'Good morning, John Doe'

Installation

npm install dtgreeter

or

yarn add dtgreeter

Usage

const dtgreeter = require('dtgreeter');

const greeting = dtgreeter('John Doe');

console.log(greeting);

TypeScript

Package is typescript declared and ready.

Authors

Package Sidebar

Install

npm i dtgreeter

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • misternooblet