Gathering detailed insights and metrics for common-bin-plus
Gathering detailed insights and metrics for common-bin-plus
Gathering detailed insights and metrics for common-bin-plus
Gathering detailed insights and metrics for common-bin-plus
npm install common-bin-plus
Typescript
Module System
Node Version
NPM Version
63.1
Supply Chain
91.8
Quality
80.9
Maintenance
100
Vulnerability
98.9
License
JavaScript (100%)
Total Downloads
3,989
Last Day
13
Last Week
15
Last Month
35
Last Year
283
4 Stars
11 Commits
1 Forks
13 Watchers
1 Branches
12 Contributors
Updated on Jul 12, 2023
Minified
Minified + Gzipped
Latest Version
2.0.1
Package Id
common-bin-plus@2.0.1
Unpacked Size
11.80 kB
Size
4.28 kB
File Count
6
NPM Version
6.14.16
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
0%
13
Compared to previous day
Last Week
650%
15
Compared to previous week
Last Month
25%
35
Compared to previous month
Last Year
-35.7%
283
Compared to previous year
5
advanced common-bin for cli usage
1npm i common-bin-plus --save
see common-bin for more details.
https://github.com/unjs/consola
1this.logger.info('hello info level'); 2this.logger.warn('hello warn level'); 3this.logger.error(new Error('hello error level')); 4this.logger.debug('hello debug level');
debug
log is disabled by default, you could enable it by:
--verbose
DEBUG=*
or DEBUG=${cliName}
logger.level = 'DEBUG'
1const answers = await this.prompt([ 2 { 3 type: 'input', 4 name: 'name', 5 message: 'What is your name:', 6 }, { 7 type: 'list', 8 name: 'type', 9 message: 'Choose a boilerplate:', 10 choices: [ 'empty', 'simple', 'plugin', 'framework' ], 11 }, 12], {}); 13 14this.logger.info(answers);
Use coffee :
1const coffee = require('coffee'); 2 3describe('test/index.test.js', () => { 4 it('should work', () => { 5 return coffee.fork('/path/to/cli') 6 // .debug() 7 .waitForPrompt() 8 .write('tz\n') 9 .writeKey('DOWN', 'ENTER') 10 .write('this is a desc\n') 11 .expect('stdout', /{ name: 'tz', type: 'simple' }/) 12 .expect('stdout', /{ description: 'this is a desc' }/) 13 .expect('code', 0) 14 .end(); 15 }); 16}):
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 1/11 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
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
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