node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / hello

Function: hello()

hello(konsole?): Promise<string>

Defined in: hello.ts:31

A sample function that should work to test if lib is installed correctly.

Parameters

konsole?

Console

optional console object to log the message

Returns

Promise<string>

hello from @wtasnorg/node-lib

Examples

import { hello } from "@wtasnorg/node-lib";

async function main() {
    const message = await hello(console);
    console.log("Received message:", message);
}

main();
import { hello } from "@wtasnorg/node-lib";

async function main() {
    const message = await hello();
    // Do something with the message
}

main();