🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more
Socket
Book a DemoInstallSign in
Socket

@jiaminghi/ftp

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jiaminghi/ftp

Promisify FTP

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
2
Created
Source

ENGLISH

FTP

LICENSE LICENSE

基于 FTP 封装的 Promisify FTP

npm 安装

$ npm install @jiaminghi/ftp

使用

import { put, mkDir } from '@jiaminghi/ftp'

// do something

示例

put

type put = (ftp: Client, src: string, dest: string) => Promise<boolean>

rmDir

type rmDir = (ftp: Client, src: string, recusive = true) => Promise<boolean>

mkDir

type mkDir = (ftp: Client, src: string, recusive = true) => Promise<boolean>

getList

type getList = (ftp: Client, src: string) => Promise<Client.ListingElement[] | false>

emptyDir

type emptyDir = (ftp: Client, src: string, except: string[] = []) => Promise<boolean>

deleteFile

type deleteFile = (ftp: Client, src: string) => Promise<boolean>

Keywords

ftp

FAQs

Package last updated on 24 Jul 2020

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