
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@types/ftps
Advanced tools
TypeScript definitions for ftps
npm install --save @types/ftps
This package contains type definitions for ftps (https://github.com/Atinux/node-ftps#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ftps.
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;
}
These definitions were written by Christos Panagiotakopoulos.
FAQs
TypeScript definitions for ftps
The npm package @types/ftps receives a total of 1,419 weekly downloads. As such, @types/ftps popularity was classified as popular.
We found that @types/ftps 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.