@wtasnorg/node-lib / hello
hello(
konsole?):Promise<string>
Defined in: hello.ts:31
A sample function that should work to test if lib is installed correctly.
Console
optional console object to log the message
Promise<string>
hello from @wtasnorg/node-lib
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();