Skip to content

SirKitts/hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@sirkitts/hello

npm (scoped)

Install

$ npm install @sirkitts/hello

Usage

const hello = require("@sirkitts/hello");

hello("World!");
//=> "Hello World!"

Hello World!

Params (optional)

name        -> string - name of a person
            -> default ""
            -> if no name, it will display a random greet based on greetingsList

greetings   -> string - commonly used greeting words
            -> default ""

greetingsList   -> list of greetings other than the default greetings
                -> default greetings ["Hello", "Hi", "Welcome", dayGreet]
                -> day greet is based on current time

exclamation -> exclamation point added to the end of greetings.
            -> default ""

Samples

console.log( hello() );
console.log( hello("Jack"));
console.log( hello("John", "Welcome aboard!") );
console.log( hello("Jose", "", ["Hey", "Ahoy there", "No way"], "!") );

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published