Socket
Socket
Sign inDemoInstall

@jiaminghi/ftp

Package Overview
Dependencies
10
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jiaminghi/ftp

Promisify FTP


Version published
Weekly downloads
0
Maintainers
2
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 24 Jul 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc