Back to marketplace
Utilities

test

A public TypeScript function.

by Matt F's workspace
2 packages0 stars0 forks0 comments

Source Preview

typescript
import fn from "@hostfunc/sdk";

// HTTP endpoint. POST { "name": "Ada" } — or GET ?name=Ada
export async function main(input: { name?: string }) {
  const name = input.name?.trim() || "world";
  fn.log("info", "hello.invoked", { name });

  return {
    message: `hello, ${name}`,
    invokedAt: new Date().toISOString(),
  };
}

About

No README has been published for this function yet.

Discussion

0

Join the discussion

Sign in to comment, reply, and star functions you love.

Start the conversation.

Share a use case, ask a question, or suggest an improvement. Be the first to comment on this function.