@rdrudra99/hello-npm
v1.0.0
Published
A simple npm package that says hello
Readme
Hello NPM
A simple npm package that provides a greeting function.
Installation
npm install @rdrudra99/hello-npmUsage
ES Modules
import { sayHello } from '@rdrudra99/hello-npm';
console.log(sayHello('World')); // Output: Hello, WorldCommonJS
const { sayHello } = require('@rdrudra99/hello-npm');
console.log(sayHello('World')); // Output: Hello, WorldBrowser
<script src="https://unpkg.com/@rdrudra99/hello-npm/dist/umd/index.min.js"></script>
<script>
console.log(helloNpm.sayHello('World')); // Output: Hello, World
</script>API
sayHello(name)
Returns a greeting message with the provided name.
- name (string): The name to include in the greeting.
- returns (string): A greeting message.
License
MIT
