Gathering detailed insights and metrics for @types/prompt-sync
Gathering detailed insights and metrics for @types/prompt-sync
Gathering detailed insights and metrics for @types/prompt-sync
Gathering detailed insights and metrics for @types/prompt-sync
The repository for high quality TypeScript type definitions.
npm install @types/prompt-sync
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,057 Stars
89,754 Commits
30,431 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 18, 2025
Latest Version
4.2.3
Package Id
@types/prompt-sync@4.2.3
Unpacked Size
7.07 kB
Size
2.19 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install --save @types/prompt-sync
This package contains type definitions for prompt-sync (https://github.com/heapwolf/prompt-sync).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prompt-sync.
1declare namespace PromptSync { 2 export interface Prompt { 3 (opts: Option): string; 4 (ask: string): string; 5 (ask: string, opts: Option): string; 6 (ask: string, value: string): string; 7 /** 8 * prompt -- sync function for reading user input from stdin 9 * @param {String} ask opening question/statement to prompt for 10 * @param {String} value initial value for the prompt 11 * @param {Object} opts { 12 * echo: set to a character to be echoed, default is '*'. Use '' for no echo 13 * value: {String} initial value for the prompt 14 * ask: {String} opening question/statement to prompt for, does not override ask param 15 * autocomplete: {StringArray} function({String}) 16 * } 17 * 18 * @returns {string} Returns the string input or (if sigint === false) 19 * null if user terminates with a ^C 20 */ 21 (ask: string, value: string, opts: Option): string; 22 23 hide(ask: string): string; 24 } 25 26 export interface Option { 27 ask?: string | undefined; 28 echo?: string | undefined; 29 autocomplete?: AutoCompleteFunction | undefined; 30 value?: string | undefined; 31 } 32 33 export interface Config { 34 sigint?: boolean | undefined; 35 eot?: boolean | undefined; 36 autocomplete?: AutoCompleteFunction | undefined; 37 history?: History | undefined; 38 } 39 40 export interface History { 41 atStart(): boolean; 42 atPenultimate(): boolean; 43 pastEnd(): boolean; 44 atEnd(): boolean; 45 prev(): string; 46 next(): string; 47 reset(): void; 48 push(str: string): void; 49 save(): void; 50 } 51 52 export interface AutoCompleteFunction { 53 (input: string): string[]; 54 } 55} 56 57/** 58 * create -- sync function for reading user input from stdin 59 * @param {Object} config { 60 * sigint: {Boolean} exit on ^C 61 * eot: {Boolean} exit on ^D 62 * autocomplete: {StringArray} function({String}) 63 * history: {String} a history control object (see `prompt-sync-history`) 64 * } 65 * @returns {Function} prompt function 66 */ 67declare function PromptSync(config?: PromptSync.Config): PromptSync.Prompt; 68 69export = PromptSync; 70
These definitions were written by TANAKA Koichi, and Yingbo Qiu.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
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