Package Exports
- dtgreeter
- dtgreeter/index.js
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 (dtgreeter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.