fp-mollie
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

fastify-mollie

Mollie client API bindigs to Fastify!

ECMA

import fastify from "fastify";
const app = fastify();
import plugin from "fp-mollie";

app.register(plugin, { apiKey: "your_key" });
app.get("/", async (req, res) => {
  console.log(await app.mollie.methods.list());
  return res.send("ok");
});
app.listen({ port: 2000 });

CommonJS

const fastify = require("fastify");
const app = fastify();
const plugin = require("fp-mollie");

app.register(plugin, { apiKey: "your_key" });
app.get("/", async (req, res) => {
  console.log(await app.mollie.methods.list());
  return res.send("ok");
});
app.listen({ port: 2000 });

Package Sidebar

Install

npm i fp-mollie

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

14.7 kB

Total Files

6

Last publish

Collaborators

  • z3ntl3