vijay-sample-demo
v1.0.2
Published
A tiny demo package to show how to share functions across the projects.
Readme
vijay-sample-demo
A tiny demo package that exports a couple of simple helper functions.
Install
npm install vijay-sample-demoIf you publish under a different name (e.g.,
@yourname/vijay-sample-demo), adjust the install command accordingly.
Usage (CommonJS)
const { greet, getMonths } = require('vijay-sample-demo');
console.log(greet('Alice')); // "Hello, Alice!"
console.log(getMonths());API
greet(name)
- Arguments:
name(string, optional) — name to greet; defaults to"world"
- Returns:
string— greeting message (e.g.,"Hello, Alice!")
getMonths()
- Returns:
string[]— array of month names (January through December)
License
MIT
