Gathering detailed insights and metrics for winston-transport-browserconsole
Gathering detailed insights and metrics for winston-transport-browserconsole
Gathering detailed insights and metrics for winston-transport-browserconsole
Gathering detailed insights and metrics for winston-transport-browserconsole
npm install winston-transport-browserconsole
Typescript
Module System
Node Version
NPM Version
TypeScript (71.01%)
JavaScript (16.83%)
HTML (12.15%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
21 Stars
27 Commits
8 Forks
2 Watchers
24 Branches
1 Contributors
Updated on Sep 01, 2024
Latest Version
1.0.5
Package Id
winston-transport-browserconsole@1.0.5
Size
724.65 kB
NPM Version
6.11.3
Node Version
12.11.1
Published on
Mar 24, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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 winston -S
And here you have a little sample:
1import * as winston from "winston"; 2import BrowserConsole from 'winston-transport-browserconsole'; 3 4const level = "debug"; 5winston.configure({ 6 transports: [ 7 new BrowserConsole( 8 { 9 format: winston.format.simple(), 10 level, 11 }, 12 ), 13 // Uncomment to compare with default Console transport 14 // new winston.transports.Console({ 15 // format: winston.format.simple(), 16 // level, 17 // }), 18 ], 19}); 20 21winston.debug("DEBUG ", {a: 1, b: "two"}); 22winston.debug("DEBUG ", {a: 1, b: "two"}); 23winston.info("INFO ", {a: 1, b: "two"}); 24winston.info("INFO ", {a: 1, b: "two"}); 25winston.warn("WARN", {a: 1, b: "two"}); 26winston.warn("WARN", {a: 1, b: "two"}); 27winston.error("ERROR ", {a: 1, b: "two"}); 28winston.error("ERROR ", {a: 1, b: "two"}); 29 30winston.debug("A message alone :( \n hahaha"); 31winston.debug("Here examinable Object ", {test: 'test', sub: { object : { test : "here" } } }); 32
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 may have directly configured in winston.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/26 approved changesets -- 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
90 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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