Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 27, 2024 via pnpm

winston-transport 4.4.0

Base stream implementations for winston@3 and up.
Package summary
Share
0
issues
2
licenses
15
MIT
1
ISC
Package created
27 Nov 2015
Version published
21 Jun 2020
Maintainers
5
Total deps
16
Direct deps
3
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
15 Packages, Including:
@colors/colors@1.6.0
@types/triple-beam@1.3.5
core-util-is@1.0.3
fecha@4.2.3
isarray@1.0.0
logform@2.6.0
ms@2.1.3
process-nextick-args@2.0.1
readable-stream@2.3.8
safe-buffer@5.1.2
safe-stable-stringify@2.4.3
string_decoder@1.1.1
triple-beam@1.4.1
util-deprecate@1.0.2
winston-transport@4.4.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
inherits@2.0.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of winston-transport 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
logform2.6.025.6 kBMIT
prod
readable-stream2.3.825.14 kBMIT
prod
triple-beam1.4.11 BMIT
prod

Visualizations

Frequently Asked Questions

What does winston-transport do?

Winston-transport is an npm package that provides a base TransportStream implementation for winston >= 3. It's designed to be used to write ecosystem Transports for winston. By utilizing winston-transport, you can take advantage of its base functionality and exceptional handling, allowing you for a more efficient implementation of your custom transports.

How do you use winston-transport?

To use winston-transport, first, you need to install the package via your npm or yarn package manager. Following that, you can utilize this const Transport from the winston-transport package to create your custom transports in JavaScript. Below is the basic pattern for creating a custom transport:

const Transport = require('winston-transport');
const util = require('util');

module.exports = class CustomTransport extends Transport {
  constructor(opts) {
    super(opts);
    // Consume any custom options here
  }

  log(info, callback) {
    setImmediate(() => {
      this.emit('logged', info);
    });

    // Perform the writing to the remote service

    callback();
  }
};

The constructor is responsible for setting up any necessary options, while the log method handles writing to the intended location using the given information.

Where are the winston-transport docs?

Documentation for winston-transport is currently not available in a separate, dedicated location. The information provided in the README on the GitHub repository (git+ssh://git@github.com/winstonjs/winston-transport.git) serves as its primary current source of documentations and usage examples. For additional insights and usage cases, exploring open-source projects that use winston-transport, or querying issues on the GitHub repository may prove beneficial.