@ssxdev/hello
v0.0.6
Published
Prints 'Hello World!' to the console
Readme
Hello World SDK
A lightweight TypeScript SDK for printing customizable "Hello World!" greetings to the console.
Installation
Install the package using npm:
npm install @ssxdev/helloUsage
Import the sayHello function and use it with different combinations of parameters:
import { sayHello } from "@ssxdev/hello";
// Basic greeting
sayHello();
// Output: Hello World!
// Greeting with first name
sayHello({ firstName: "Charlie" });
// Output: Hello Charlie!
// Greeting with full name
sayHello({ firstName: "Bob", lastName: "Johnson" });
// Output: Hello Bob Johnson!
// Complete greeting with age
sayHello({ firstName: "Alice", lastName: "Smith", age: 25 });
// Output: Hello Alice Smith, you are 25 years old!API Reference
sayHello(props: SayHelloProps)
Parameters:
type SayHelloProps = {
firstName?: string;
lastName?: string;
age?: number;
};License
MIT © ssxdev
