New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@digital-alchemy/fastify-extension

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digital-alchemy/fastify-extension

- [Extended docs](https://docs.digital-alchemy.app) - [Discord](https://discord.gg/JkZ35Gv97Y)

24.9.1
Source
npm
Version published
Maintainers
0
Created
Source

📨 Welcome to the Fastify Adapter Library

  • Extended docs
  • Discord

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", () => { /*...*/ });
  });
}

FAQs

Package last updated on 25 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts