@sirkitts/hello
v1.0.3
Published
Hello
Downloads
1
Readme
@sirkitts/hello
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"], "!") );