šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@types/ftps

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ftps

TypeScript definitions for ftps

1.2.2
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Weekly downloads
2.1K
-23.52%
Maintainers
1
Weekly downloads
Ā 
Created
Source

Installation

npm install --save @types/ftps

Summary

This package contains type definitions for ftps (https://github.com/Atinux/node-ftps#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ftps.

index.d.ts

export = FTP;

declare namespace FTP {
    interface FTPOptions {
        host: string;
        port?: number | undefined;
        protocol?: string | undefined;
        username?: string | undefined;
        password?: string | undefined;
        bareCredentials?: string | undefined;
        escape?: boolean | undefined;
        retries?: number | undefined;
        timeout?: number | undefined;
        retryInterval?: number | undefined;
        retryIntervalMultiplier?: number | undefined;
        requiresPassword?: boolean | undefined;
        autoConfirm?: boolean | undefined;
        cwd?: string | undefined;
        additionalLftpCommands?: string | undefined;
        requireSSHKey?: boolean | undefined;
        sshKeyPath?: string | undefined;
        sshKeyOptions?: string | undefined;
    }

    interface MirrorOptions {
        remoteDir?: string | undefined;
        localDir?: string | undefined;
        options?: string | undefined;
        upload?: boolean | undefined;
        parallel?: boolean | number | undefined;
        filter?: any;
    }

    interface FTPResults {
        data: string | null;
        error: Error | null;
    }

    type FTPCallbackFunction = (err: Error | null, results: FTPResults) => any;
}

declare class FTP {
    constructor(options: FTP.FTPOptions);

    raw(cmd: string): FTP;
    ls(): FTP;
    pwd(): FTP;
    cd(directory: string): FTP;
    cat(path: string): FTP;
    put(localPath: string, remotePath: string): FTP;
    addFile(localPath: string, remotePath: string): FTP;
    get(remotePath: string, localPath: string): FTP;
    getFile(remotePath: string, localPath: string): FTP;
    mv(from: string, to: string): FTP;
    move(from: string, to: string): FTP;
    rm(...paths: string[]): FTP;
    remove(...paths: string[]): FTP;
    rmdir(...paths: string[]): FTP;
    mirror(options: FTP.MirrorOptions): FTP;

    exec(cmdsOrCallback: string | string[] | FTP.FTPCallbackFunction, callback?: FTP.FTPCallbackFunction): any;
    execAsStream(cmds: string | string[]): any;
    // Helpers
    escapeshell(cmd: string): string;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Christos Panagiotakopoulos.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

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.

Install

Related posts