UNPKG

@vikaskalla/my-scoped-package

Version:

A simple npm package that provides greeting functionality

43 lines (27 loc) 835 B
# @vikaskalla/my-scoped-package A simple npm package that provides greeting functionality. ## Installation ```bash npm install @vikaskalla/my-scoped-package ``` ## Usage ```javascript 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