Gathering detailed insights and metrics for @haggholm/winston-transport-browserconsole
Gathering detailed insights and metrics for @haggholm/winston-transport-browserconsole
npm install @haggholm/winston-transport-browserconsole
Typescript
Module System
Node Version
NPM Version
67.1
Supply Chain
80.9
Quality
73.4
Maintenance
100
Vulnerability
99.6
License
TypeScript (71.01%)
JavaScript (16.83%)
HTML (12.15%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
551
Last Day
2
Last Week
5
Last Month
13
Last Year
68
21 Stars
27 Commits
8 Forks
3 Watching
24 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.1
Package Id
@haggholm/winston-transport-browserconsole@1.0.1
Unpacked Size
954.91 kB
Size
724.85 kB
File Count
12
NPM Version
6.6.0
Node Version
10.13.0
Cumulative downloads
Total Downloads
Last day
100%
2
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
85.7%
13
Compared to previous month
Last year
-49.6%
68
Compared to previous year
2
Want to log in browser like using console.log but taking advantage of all facilities winston provides?
Want to filter by level in your browser?
Want to inspect the objects arguments instead of printing them as json strings?
npm install winston-transport-browserconsole -S
And here you have a little sample:
import * as winston from "winston";
import BrowserConsole from 'winston-transport-browserconsole';
const level = "debug";
winston.configure({
transports: [
new BrowserConsole(
{
format: winston.format.simple(),
level,
},
),
// Uncomment to compare with default Console transport
// new winston.transports.Console({
// format: winston.format.simple(),
// level,
// }),
],
});
winston.debug("DEBUG ", {a: 1, b: "two"});
winston.debug("DEBUG ", {a: 1, b: "two"});
winston.info("INFO ", {a: 1, b: "two"});
winston.info("INFO ", {a: 1, b: "two"});
winston.warn("WARN", {a: 1, b: "two"});
winston.warn("WARN", {a: 1, b: "two"});
winston.error("ERROR ", {a: 1, b: "two"});
winston.error("ERROR ", {a: 1, b: "two"});
winston.debug("A message alone :'(\n hahaha");
winston.debug("Here examinable Object ", {test: 'test', sub: { object : { test : "here" } } });
Notice Tested with version 3.x.x of winston. Please be sure to set the level in the ConsoleBrowser constructor as did not find a good way to get the one you could configure in winston.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
84 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More