0.0.6 • Published 6 months ago

@ssxdev/hello v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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/hello

Usage

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

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago