Gathering detailed insights and metrics for winston-timestamp-colorize
Gathering detailed insights and metrics for winston-timestamp-colorize
Gathering detailed insights and metrics for winston-timestamp-colorize
Gathering detailed insights and metrics for winston-timestamp-colorize
simple format for winston to colorize timestamps
npm install winston-timestamp-colorize
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
14 Commits
10 Branches
1 Contributors
Updated on Oct 30, 2022
Latest Version
1.1.0
Package Id
winston-timestamp-colorize@1.1.0
Unpacked Size
16.60 kB
Size
5.86 kB
File Count
10
NPM Version
6.13.4
Node Version
12.16.0
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
this is a simple library for adding colorization to timestamps of winston.
npm install --save winston-timestamp-colorize
just add winston-timestamp-colorize to your winston formats after winston.format.timestamp()
1const winstonTimestampColorize = require('winston-timestamp-colorize'); 2 3winston.createLogger({ 4 ... 5 format: winston.format.combine( 6 ... 7 winston.format.timestamp(), 8 winstonTimestampColorize(), 9 ... 10 ), 11 ... 12});
you can pass an optional {color: '...' } parameter to winstonTimestampColorize to change the color of timestamp. available colors are:
1const winston = require('winston'); 2const winstonTimestampColorize = require('winston-timestamp-colorize'); 3 4// creating the logger instance 5const logger = winston.createLogger({ 6 format: winston.format.combine( 7 winston.format.splat(), 8 winston.format.timestamp(), 9 winston.format.colorize(), 10 winstonTimestampColorize({color: 'red'}), 11 winston.format.printf((info) => `${info.timestamp} ${info.level}: ${info.message}`)), 12 level: 'debug', 13 transports: [ 14 new winston.transports.Console({}), 15 ], 16}); 17 18// log with it ;) 19logger.debug('hello world');
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/14 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 SAST tool detected
Details
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
20 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