Installations
npm install suf-log
Developer
TheRealSyler
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
12.13.1
NPM Version
6.14.8
Statistics
60 Commits
2 Watching
9 Branches
1 Contributors
Updated on 22 Aug 2021
Bundle Size
13.57 kB
Minified
4.74 kB
Minified + Gzipped
Languages
TypeScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
10,544,441
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
8
suf-log
Logging utility, some parts are experimental, if you are not me don't use this package.
Docs
interfaces
LogStyle
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}
LogMessage
1type LogMessage = { 2 message: string; 3 style?: LogStyle; 4}
LogTableInput
1type LogTableInput = (number | string | LogMessage)[][];
loggers
LogS
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;
LogSingle
1/**Log a single message with an optional style, works in the browser and node. */ 2function LogSingle(message: string, style?: LogStyle): void;
styler
styler
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
License
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
Project has not signed or included provenance with any releases.
Details
- Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/TheRealSyler/suf-log/releases/21339725
- Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/TheRealSyler/suf-log/releases/21339725
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Reason
28 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
Score
1.5
/10
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