1.2.1 • Published 6 months ago
random-greet-mssg v1.2.1
random-greet-mssg
How to use this?
- install this module in your project directory
npm install random-greet-mssg
- import randomByeMssg/randomGreetMssg or both in your js file
import {randomByeMssg, randomGreeMssg} from 'random-greet-mssg';
//NOTE: to use in browser you need to include entire path instead of just "random-greet-mssg"
//something like this "./node_modules/random-gree-mssg/function.js"
- use functions:
- randomGreetMssg :
console.log(randomGreeMssg("name")); //will output a random greet message + name //for e.g. hello name!
randomByeMssg :
console.log(randomByeMssg()); //will output a random bye message //for e.g. bye.
- randomGreetMssg :