first-say-hello-2
v1.0.0
Published
This is the first NPM library that exports a `sayHello` function.
Readme
First NPM Library
This is the first NPM library that exports a sayHello function.
Installation
To install the library, use the following command:
npm install first-moduleUsage
The sayHello function takes an object with name (required) and age (optional) properties and logs a greeting message. Here's how to use it:
CommonJS
const { sayHello } = require("first-module");
sayHello({ name: "World" }); // Output: Hello World
sayHello({ name: "John", age: 30 }); // Output: Hello John\nYour are 30 YearsES Modules
import { sayHello } from "first-module";
sayHello({ name: "World" }); // Output: Hello World
sayHello({ name: "John", age: 30 }); // Output: Hello John\nYour are 30 YearsLicense
This project is licensed under the Apache-2.0 License.
