New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fusedb/logger

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fusedb/logger

A FUSE middleware to handle logging.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

🧩 FUSE Middleware: Logger

A FUSE middleware that provides logging with support for Winston, Pino, etc.

npm i @fushdb/logger npm license FUSE ⚡

📦 Installation

npm install @fusedb/core
npm install @fusedb/logger

🚀 Usage

Console:

const FUSE = require("@fusedb/core");
const JSONDriver = require("@fusedb/json");
const Logger = require("@fusedb/logger");

const db = new FUSE({
  driver: new JSONDriver({ path: "./data/db.json" }),
  middleware: [new Logger()],
});

(async () => {
  await db.set("name", "Fuse");
  await db.get("name");
})();

Winston:

const FUSE = require("@fusedb/core");
const JSONDriver = require("@fusedb/json");
const Logger = require("@fusedb/logger");
const winston = require("winston");

const customLogger = winston.createLogger({
  level: "info",
  transports: [new winston.transports.Console()],
});

const db = new FUSE({
  driver: new JSONDriver({ path: "./data/db.json" }),
  middleware: [
    new Logger({ mode: "custom", logger: customLogger })
  ],
});

(async () => {
  await db.set("name", "Fuse");
  await db.get("name");
})();

⚙️ Options

OptionTypeDescription
modestringSet to custom or console
loggerobjectLogger instance (e.g. winston or pino)
includeValuesobjectLog full values

✅ Features

  • ✅ Works with any FUSE driver
  • ✅ Compatible with Winston, Pino, etc.

🤝 Contributing

Want to make your own middleware?

Feel free to share your plugin with the community!

🧾 License

Licensed under the Apache-2.0.

Keywords

FUSE

FAQs

Package last updated on 29 May 2025

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