apihat-node
v1.0.0
Published
API Hat Node SDK
Downloads
2
Readme
apihat-node
A Node.js middleware for logging API requests and responses to API Hat.
Requirements
- nodejs
Dependencies
Installation
To use this library, you need to install it via npm or yarn:
$ npm install apihat-node
$ yarn add apihat-node
Use the middleware with your Express app
Please ensure you load the necessary JavaScript modules in your app.js
or index.js
file.
const express = require("express");
const { useApiHat } = require("apihat-node");
const app = express();
const PORT = 3000;
app.use(express.json());
// Use the API Hat middleware
app.use(useApiHat({
apiKey: "_YOUR_API_KEY_", // Replace with your API Hat API key
projectId: "_YOUR_PROJECT_ID_" // Replace with your API Hat project ID
}));
Support
If you encounter any issues or need assistance, please reach out to us at API Hat Support or email us at [email protected]. We're here to help!