Gathering detailed insights and metrics for suf-log
Gathering detailed insights and metrics for suf-log
Gathering detailed insights and metrics for suf-log
Gathering detailed insights and metrics for suf-log
npm install suf-log
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
60 Commits
2 Watching
9 Branches
1 Contributors
Updated on 22 Aug 2021
Minified
Minified + Gzipped
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-5.5%
22,302
Compared to previous day
Last week
3.9%
143,963
Compared to previous week
Last month
-2.9%
584,805
Compared to previous month
Last year
54.4%
6,098,907
Compared to previous year
1
8
Logging utility, some parts are experimental, if you are not me don't use this package.
1/** 2 * color/background/font-weight work in node and the browser, the other properties only work in the browser. 3 */ 4type LogStyle = string | { 5 /**node and browser support */ 6 background?: string; 7 /**node and browser support */ 8 color?: string; 9 /**browser only */ 10 padding?: string; 11 /**browser only */ 12 margin?: string; 13 /**browser only, set to inline-block by default. */ 14 display?: string; 15 /**browser only */ 16 border?: string; 17 /**browser only */ 18 'border-radius'?: string; 19 /**browser only */ 20 'text-align'?: string; 21 /**browser only */ 22 'text-shadow'?: string; 23 /**browser only */ 24 'font-size'?: string; 25 /** for bold text in node add the value 'bold' */ 26 'font-weight'?: 'bold' | 'normal' | 'bolder' | 'lighter' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'; 27 [key: string]: string | undefined; 28}
1type LogMessage = { 2 message: string; 3 style?: LogStyle; 4}
1type LogTableInput = (number | string | LogMessage)[][];
1/**works in node and the browser.*/ 2function Log(...messages: (string | LogMessage)[]): void; 3interface LogTableOptions { 4 padding?: number; 5 spacing?: number; 6} 7/**node only*/ 8function LogTable(table: LogTableInput, options?: LogTableOptions): void; 9/**works in the browser and node. */ 10function LogS(styles: LogStyle[], ...messages: string[]): void;
1/**Log a single message with an optional style, works in the browser and node. */ 2function LogSingle(message: string, style?: LogStyle): void;
1/** 2 * this function is not browser compatible*. 3 * @example ```ts 4 * console.log(styler('test', 'red')) 5 * ``` 6 * 7 * *you have to add the styles manually, use the Log function for browser compatibly. 8 */ 9function styler(input: string, style?: LogStyle): string;
Generated with suf-cli
Copyright (c) 2020 Leonard Grosoli Licensed under the MIT license.
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 0/28 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
Project has not signed or included provenance with any releases.
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
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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