
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@chainsafe/ts-cli
Advanced tools
The template that is used was a port of the Lodestar CLI, and thus heavily inspired by the design patters of Lodestar.
Commands:
generate Generates the CLI from a template.
config Creates an empty configuration file.
Options:
-h, --help Show help
-v, --version Show version number
The generator requires a configuration file, config.example.json is provided as guidance. It can be run as followed:
npx @chainsafe/ts-cli generate --config ./<local_file> -o ./my-cli
The configuration file follows the following interface pattern:
interface Config {
name: string; // Name of the CLI
globalOptions: IOption[]; // Options available at the global scope
commands: ICommand[]; // List of commands
}
interface IOption {
name: string; // Name of the option, eg: --<name>
description: string; // Provides a description when --help is used
type: string; // Valid TypeScript type in strings, eg: number
default: string; // The default value
}
interface ICommand {
name: string; // Name of the command
description: string; // Provides a description when --help is used
options: IOption[]; // Options available at the command level
subCommands: ICommand[]; // Optional sub-commands
}
Although there is a lot that can be changed, the bulk of the setup has been done for you. The main things that need updating can be searched for by looking up // TODO: change this!. After that, the world is your oyster.
FAQs
This is a TypeScript CLI generator!
The npm package @chainsafe/ts-cli receives a total of 4 weekly downloads. As such, @chainsafe/ts-cli popularity was classified as not popular.
We found that @chainsafe/ts-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.