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
71.6
Supply Chain
80.3
Quality
74.3
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
1,411,004
Last Day
478
Last Week
2,502
Last Month
11,272
Last Year
175,487
21 Stars
27 Commits
8 Forks
3 Watching
24 Branches
2 Contributors
Minified
Minified + Gzipped
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
Publised On
24 Mar 2020
Cumulative downloads
Total Downloads
Last day
21.3%
478
Compared to previous day
Last week
-5.2%
2,502
Compared to previous week
Last month
30.1%
11,272
Compared to previous month
Last year
-46.1%
175,487
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
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