npm.io
1.0.4 • Published 3 years ago

fp-mollie

Licence
ISC
Version
1.0.4
Deps
3
Size
14 kB
Vulns
3
Weekly
0
Stars
1

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 });

Keywords