@sirkitts/hello

1.0.3 • Public • Published

@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"], "!") );

Readme

Keywords

Package Sidebar

Install

npm i @sirkitts/hello

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

4.7 kB

Total Files

4

Last publish

Collaborators

  • sirkitts