@vikaskalla/my-scoped-package
v2.0.0
Published
A simple npm package that provides greeting functionality
Maintainers
Readme
@vikaskalla/my-scoped-package
A simple npm package that provides greeting functionality.
Installation
npm install @vikaskalla/my-scoped-packageUsage
const greeter = require('@vikaskalla/my-scoped-package');
// Greeting
console.log(greeter.greet('John')); // Hello, John! Welcome to my first npm package.
// Farewell
console.log(greeter.farewell('John')); // Goodbye, John! Thanks for using my npm package.API
greet(name)
Returns a greeting message for the given name.
- Parameters:
name(string): The name to greet
- Returns: A string with the greeting message
farewell(name)
Returns a farewell message for the given name.
- Parameters:
name(string): The name to say goodbye to
- Returns: A string with the farewell message
License
ISC
