@vikaskalla/my-scoped-package
Version:
A simple npm package that provides greeting functionality
43 lines (27 loc) • 835 B
Markdown
A simple npm package that provides greeting functionality.
```bash
npm install @vikaskalla/my-scoped-package
```
```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.
```
Returns a greeting message for the given name.
- **Parameters**:
- `name` (string): The name to greet
- **Returns**: A string with the greeting message
Returns a farewell message for the given name.
- **Parameters**:
- `name` (string): The name to say goodbye to
- **Returns**: A string with the farewell message
ISC