Installations
npm install cli-sprintf-format
Developer
medikoo
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
>=6.0
Typescript Support
No
Node Version
16.13.1
NPM Version
8.1.2
Statistics
1 Stars
29 Commits
3 Watching
1 Branches
1 Contributors
Updated on 21 Dec 2021
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
124,750,944
Last day
-8%
158,440
Compared to previous day
Last week
3.4%
886,988
Compared to previous week
Last month
-1.2%
3,763,165
Compared to previous month
Last year
7.2%
47,017,834
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
cli-sprintf-format
CLI dedicated sprintf formatter
An improved version of util.formatWithOptions
- Provides more reliable type resolution and error handling
- Detects color support (via supports-color)
- Ensures colored (if supported) output not only for the inspected objects but also for primitive vaulues
- Colored JSON (
%j
) formatting - Object inspection depth defaults to
4
, but can be overriden viaFORMAT_INSPECT_DEPTH
environment variable - For
%s
strings are passed throughinspect
formatter therefore appear colored (if supported) and eventual multiline content appears inline. To escape that behavior%#s
should be used instead
Installation
1npm install cli-sprintf-format
Usage
1const cliFormat = require("cli-sprintf-format"); 2 3console.log(cliFormat("Some %s with %d count", "foo", 12)); // Some foo with 12 count
Tests
1npm test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/integrate.yml:1
- Warn: no topLevel permission defined: .github/workflows/publish.yml:1
- Warn: no topLevel permission defined: .github/workflows/validate.yml:1
- Info: no jobLevel write permissions found
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:119: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:123: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:132: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:282: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:151: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:155: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:164: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:181: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:185: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:194: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:211: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:215: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:224: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:241: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:245: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integrate.yml:254: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/integrate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:227: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:231: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:242: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:259: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:263: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:274: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:129: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:133: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:163: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:167: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:178: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:195: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:199: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:210: update your workflow using https://app.stepsecurity.io/secureworkflow/medikoo/cli-sprintf-format/validate.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:201
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:202
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:231
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:232
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:38
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:39
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:98
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:99
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:139
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:140
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:171
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:172
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:261
- Warn: npmCommand not pinned by hash: .github/workflows/integrate.yml:262
- Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:49
- Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:50
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:185
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:186
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:217
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:218
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:249
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:250
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:281
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:282
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:40
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:41
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:108
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:109
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:151
- Warn: npmCommand not pinned by hash: .github/workflows/validate.yml:152
- Info: 0 out of 52 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 30 npmCommand dependencies pinned
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Score
3.4
/10
Last Scanned on 2024-11-18
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