You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@types/progress

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/progress - npm Package Compare versions

Comparing version
1.1.27
to
1.1.28
+123
progress/index.d.ts
// Type definitions for node-progress v1.1.8
// Project: https://github.com/tj/node-progress
// Definitions by: Sebastian Lenz <https://github.com/sebastian-lenz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
/**
* These are keys in the options object you can pass to the progress bar along with total as seen in the example above.
*/
interface ProgressBarOptions {
/**
* Total number of ticks to complete.
*/
total: number;
/**
* The displayed width of the progress bar defaulting to total.
*/
width?: number;
/**
* The output stream defaulting to stderr.
*/
stream?: NodeJS.WritableStream;
/**
* Completion character defaulting to "=".
*/
complete?: string;
/**
* Incomplete character defaulting to "-".
*/
incomplete?: string;
/**
* Option to clear the bar on completion defaulting to false.
*/
clear?: boolean;
/**
* Optional function to call when the progress bar completes.
*/
callback?: Function;
}
/**
* Flexible ascii progress bar.
*/
declare class ProgressBar {
/**
* Initialize a `ProgressBar` with the given `fmt` string and `options` or
* `total`.
*
* Options:
* - `total` total number of ticks to complete
* - `width` the displayed width of the progress bar defaulting to total
* - `stream` the output stream defaulting to stderr
* - `complete` completion character defaulting to "="
* - `incomplete` incomplete character defaulting to "-"
* - `renderThrottle` minimum time between updates in milliseconds defaulting to 16
* - `callback` optional function to call when the progress bar completes
* - `clear` will clear the progress bar upon termination
*
* Tokens:
* - `:bar` the progress bar itself
* - `:current` current tick number
* - `:total` total ticks
* - `:elapsed` time elapsed in seconds
* - `:percent` completion percentage
* - `:eta` eta in seconds
*/
constructor(format: string, total: number);
constructor(format: string, options: ProgressBarOptions);
/**
* "tick" the progress bar with optional `len` and optional `tokens`.
*/
tick(tokens?: any): void;
tick(count?: number, tokens?: any): void;
/**
* Method to render the progress bar with optional `tokens` to place in the
* progress bar's `fmt` field.
*/
render(tokens?: any): void;
/**
* "update" the progress bar to represent an exact percentage.
* The ratio (between 0 and 1) specified will be multiplied by `total` and
* floored, representing the closest available "tick." For example, if a
* progress bar has a length of 3 and `update(0.5)` is called, the progress
* will be set to 1.
*
* A ratio of 0.5 will attempt to set the progress to halfway.
*
* @param ratio The ratio (between 0 and 1 inclusive) to set the
* overall completion to.
*/
update(ratio: number, tokens?: any): void;
/**
* Terminates a progress bar.
*/
terminate(): void;
/**
* Completed status of progress (Boolean)
*/
complete: boolean;
}
declare namespace ProgressBar { }
export = ProgressBar;
{
"name": "@types/progress",
"version": "1.1.28",
"description": "TypeScript definitions for node-progress v1.1.8",
"license": "MIT",
"author": "Sebastian Lenz <https://github.com/sebastian-lenz>",
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {
"@types/node": "*"
},
"typings": "index.d.ts",
"typesPublisherContentHash": "a56cd544f8ce432b94d78bdcf14921eb69ba04c8b40ecf7dc78ae214356e0449"
}
# Installation
> `npm install --save @types/progress`
# Summary
This package contains type definitions for node-progress v1.1.8 (https://github.com/tj/node-progress).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/progress
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: ProperModule
* Library Dependencies: node
* Module Dependencies: none
* Global values: ProgressBar
# Credits
These definitions were written by Sebastian Lenz <https://github.com/sebastian-lenz>.
{
"authors": "Sebastian Lenz <https://github.com/sebastian-lenz>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [
"node"
],
"moduleDependencies": [],
"libraryMajorVersion": "1",
"libraryMinorVersion": "1",
"libraryName": "node-progress v1.1.8",
"typingsPackageName": "progress",
"projectName": "https://github.com/tj/node-progress",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"ProgressBar"
],
"declaredModules": [
"progress"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "a56cd544f8ce432b94d78bdcf14921eb69ba04c8b40ecf7dc78ae214356e0449"
}
-117
// Type definitions for node-progress v1.1.8
// Project: https://github.com/tj/node-progress
// Definitions by: Sebastian Lenz <https://github.com/sebastian-lenz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
/**
* These are keys in the options object you can pass to the progress bar along with total as seen in the example above.
*/
interface ProgressBarOptions {
/**
* Total number of ticks to complete.
*/
total: number;
/**
* The displayed width of the progress bar defaulting to total.
*/
width?: number;
/**
* The output stream defaulting to stderr.
*/
stream?: NodeJS.WritableStream;
/**
* Completion character defaulting to "=".
*/
complete?: string;
/**
* Incomplete character defaulting to "-".
*/
incomplete?: string;
/**
* Option to clear the bar on completion defaulting to false.
*/
clear?: boolean;
/**
* Optional function to call when the progress bar completes.
*/
callback?: Function;
}
/**
* Flexible ascii progress bar.
*/
declare class ProgressBar {
/**
* Initialize a `ProgressBar` with the given `fmt` string and `options` or
* `total`.
*
* Options:
* - `total` total number of ticks to complete
* - `width` the displayed width of the progress bar defaulting to total
* - `stream` the output stream defaulting to stderr
* - `complete` completion character defaulting to "="
* - `incomplete` incomplete character defaulting to "-"
* - `renderThrottle` minimum time between updates in milliseconds defaulting to 16
* - `callback` optional function to call when the progress bar completes
* - `clear` will clear the progress bar upon termination
*
* Tokens:
* - `:bar` the progress bar itself
* - `:current` current tick number
* - `:total` total ticks
* - `:elapsed` time elapsed in seconds
* - `:percent` completion percentage
* - `:eta` eta in seconds
*/
constructor(format: string, total: number);
constructor(format: string, options: ProgressBarOptions);
/**
* "tick" the progress bar with optional `len` and optional `tokens`.
*/
tick(tokens?: any): void;
tick(count?: number, tokens?: any): void;
/**
* Method to render the progress bar with optional `tokens` to place in the
* progress bar's `fmt` field.
*/
render(tokens?: any): void;
/**
* "update" the progress bar to represent an exact percentage.
* The ratio (between 0 and 1) specified will be multiplied by `total` and
* floored, representing the closest available "tick." For example, if a
* progress bar has a length of 3 and `update(0.5)` is called, the progress
* will be set to 1.
*
* A ratio of 0.5 will attempt to set the progress to halfway.
*
* @param ratio The ratio (between 0 and 1 inclusive) to set the
* overall completion to.
*/
update(ratio: number, tokens?: any): void;
/**
* Terminates a progress bar.
*/
terminate(): void;
}
declare namespace ProgressBar { }
export = ProgressBar;
{
"name": "@types/progress",
"version": "1.1.27",
"description": "TypeScript definitions for node-progress v1.1.8",
"main": "",
"scripts": {},
"author": "Sebastian Lenz <https://github.com/sebastian-lenz>",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"license": "MIT",
"typings": "index.d.ts",
"dependencies": {
"@types/node": "4.0.*"
}
}
# Installation
> `npm install --save @types/progress`
# Summary
This package contains type definitions for node-progress v1.1.8 (https://github.com/tj/node-progress).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/progress
Additional Details
* Last updated: Thu, 14 Jul 2016 13:52:49 GMT
* File structure: ProperModule
* Library Dependencies: node
* Module Dependencies: none
* Global values: ProgressBar
# Credits
These definitions were written by Sebastian Lenz <https://github.com/sebastian-lenz>.
{
"authors": "Sebastian Lenz <https://github.com/sebastian-lenz>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [
"node"
],
"moduleDependencies": [],
"libraryMajorVersion": "1",
"libraryMinorVersion": "1",
"libraryName": "node-progress v1.1.8",
"typingsPackageName": "progress",
"projectName": "https://github.com/tj/node-progress",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"ProgressBar"
],
"declaredModules": [
"progress"
],
"files": [
"index.d.ts"
],
"contentHash": "3c1912d9b4d21476361dff73fbc7d1dfc0d12fffd33d839e73775ee77755fde8"
}