Installations
npm install @visulima/cerebro
Developer Guide
Typescript
Yes
Module System
ESM
Min. Node Version
>=18.* <=23.*
Node Version
18.20.5
NPM Version
9.6.7
Score
67.7
Supply Chain
83.7
Quality
91.2
Maintenance
100
Vulnerability
85.3
License
Releases
@visulima/package@3.2.0
Published on 16 Dec 2024
@visulima/cerebro@1.1.26
Published on 12 Dec 2024
@visulima/pail@2.1.12
Published on 12 Dec 2024
@visulima/api-platform@3.0.27
Published on 12 Dec 2024
@visulima/jsdoc-open-api@2.0.65
Published on 12 Dec 2024
@visulima/find-cache-dir@1.0.16
Published on 12 Dec 2024
Contributors
Languages
TypeScript (91.8%)
JavaScript (5.89%)
MDX (1.66%)
Handlebars (0.39%)
CSS (0.14%)
Shell (0.12%)
Developer
Download Statistics
Total Downloads
24,285
Last Day
34
Last Week
531
Last Month
3,236
Last Year
24,285
GitHub Statistics
12 Stars
2,205 Commits
3 Forks
2 Watching
16 Branches
2 Contributors
Sponsor this package
Package Meta Information
Latest Version
1.1.26
Package Id
@visulima/cerebro@1.1.26
Unpacked Size
112.61 kB
Size
31.91 kB
File Count
13
NPM Version
9.6.7
Node Version
18.20.5
Publised On
12 Dec 2024
Total Downloads
Cumulative downloads
Total Downloads
24,285
Last day
-91.9%
34
Compared to previous day
Last week
-67.9%
531
Compared to previous week
Last month
7.8%
3,236
Compared to previous month
Last year
0%
24,285
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
7
Dev Dependencies
34
Visulima Cerebro
Cerebro is a delightful toolkit for building Node-based command-line interfaces (CLIs) built on top of
boxen, colorize, cli-table3, command-line-args and fastest-levenshtein
I would recommend reading this guide on how to make user-friendly command-line tools.
Daniel Bannert's open source work is supported by the community on GitHub Sponsors
Install
1npm install @visulima/cerebro
1yarn add @visulima/cerebro
1pnpm add @visulima/cerebro
Usage
1import Cli from "@visulima/cerebro";
2
3// Create a CLI runtime
4const cli = new Cli("cerebro");
5
6// Your command
7cli.addCommand({
8 name: "main:colors",
9 description: "Output colors", // This is used in the help output
10 execute: ({ logger }) => {
11 logger.info("Colors command");
12 },
13});
14
15await cli.run();
Now you can run your CLI with node index.js
and you should see the following output:
Supported Node.js Versions
Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.
Contributing
If you would like to help take a look at the list of issues and check our Contributing guild.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Credits
About
Related Projects
- oclif - The Open CLI Framework
- gluegun - A delightful toolkit for building TypeScript-powered command-line apps.
- meow - CLI app helper
- commander.js - node.js command-line interfaces made easy
- yargs - yargs the modern, pirate-themed successor to optimist.
License
The visulima package is open-sourced software licensed under the MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
project has 6 contributing companies or organizations
Details
- Info: sass-projects contributor org/company found, faker-js contributor org/company found, narrowspark contributor org/company found, anolilab contributor org/company found, growcss contributor org/company found, MarkdownDoc contributor org/company found,
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
- Info: detected update tool: RenovateBot: .github/renovate.json5:1
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
SAST tool detected: CodeQL
Details
- Info: SAST configuration detected: CodeQL
- Warn: no pull requests merged into dev branch
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:84
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:237
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:135
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:186
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/lock-file-maintenance.yml:39
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/preview-release.yaml:50
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/semantic-release.yml:59
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/semantic-release.yml:78
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:96
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:164
- Warn: downloadThenRun not pinned by hash: .github/workflows/lint.yml:305
- Info: 25 out of 25 GitHub-owned GitHubAction dependencies pinned
- Info: 44 out of 54 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 downloadThenRun dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:34
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:33
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/lock-file-maintenance.yml:20
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/preview-release.yaml:22
- Warn: jobLevel 'checks' permission set to 'write': .github/workflows/preview-release.yaml:24
- Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/require-allow-edits.yml:11
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/scorecards.yml:31
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/scorecards.yml:32
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/semantic-pull-request.yml:21
- Warn: no topLevel permission defined: .github/workflows/allo-allo.yaml:1
- Warn: no topLevel permission defined: .github/workflows/cache-clear.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:24
- Info: topLevel 'contents' permission set to 'read': .github/workflows/comment-issue.yml:9
- Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:17
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yml:16
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lock-file-maintenance.yml:12
- Warn: no topLevel permission defined: .github/workflows/lock-issues.yaml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/preview-release.yaml:8
- Info: topLevel 'contents' permission set to 'read': .github/workflows/require-allow-edits.yml:6
- Info: topLevel permissions set to 'read-all': .github/workflows/scorecards.yml:20
- Info: topLevel 'contents' permission set to 'read': .github/workflows/semantic-pull-request.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/semantic-release.yml:17
- Warn: no topLevel permission defined: .github/workflows/stale-issues.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yml:16
Score
6.2
/10
Last Scanned on 2024-12-24T07:27:21Z
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