
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@types/argv
Advanced tools
TypeScript definitions for argv
npm install --save @types/argv
This package contains type definitions for argv (https://www.npmjs.com/package/argv).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/argv.
// argv module
type args = {
targets: string[];
options: { [key: string]: any };
};
type helpOption = {
name: string;
type: string;
short?: string | undefined;
description?: string | undefined;
example?: string | undefined;
};
type module = {
mod: string;
description: string;
options: { [key: string]: helpOption };
};
type typeFunction = (value: any, ...arglist: any[]) => any;
type argv = {
// Runs the arguments parser
run: (argv?: string[]) => args;
// Adding options to definitions list
option: (mod: helpOption | helpOption[]) => argv;
// Creating module
mod: (object: module | module[]) => argv;
// Creates custom type function
type: (name: string | { [key: string]: typeFunction }, callback?: typeFunction) => any;
// Setting version number, and auto setting version option
version: (v: string) => argv;
// Description setup
info: (mod: string, description?: module) => argv;
// Cleans out current options
clear: () => argv;
// Prints out the help doc
help: (mod?: string) => argv;
};
declare const argv: argv;
export = argv;
These definitions were written by Hookclaw.
FAQs
TypeScript definitions for argv
The npm package @types/argv receives a total of 7,106 weekly downloads. As such, @types/argv popularity was classified as popular.
We found that @types/argv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.