25.3.3 • Published 8 months ago

@digital-alchemy/fastify-extension v25.3.3

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

📨 Welcome to the Fastify Adapter Library

This library acts as a simple wrapper for Fastify, allowing it to be configured and loaded by @digital-alchemy workflows

🥡 Import Code

Add as a dependency, and add to your imports. Nice and easy

npm i @digital-alchemy/fastify-extension

Add to code

import { LIB_FASTIFY } from "@digital-alchemy/fastify-extension";

// application
const MY_APP = CreateApplication({
  libraries: [LIB_FASTIFY],
  name: "home_automation",
})

// library
export const MY_LIBRARY = CreateLibrary({
  depends: [LIB_FASTIFY],
  name: "special_logic",
})

🧲 Usage

export function Example({ fastify }: TServiceParams) {
  fastify.routes((fastify: FastifyInstance) => {
    fastify.post("/a", () => { /*...*/ });
    fastify.get("/b", () => { /*...*/ });
  });
}
25.3.3

8 months ago

25.3.2

8 months ago

25.3.1

8 months ago

24.9.1

1 year ago

24.8.1

1 year ago

24.7.1

1 year ago

24.6.1

1 year ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago