ftp-promise-client

0.1.1 • Public • Published

ftp-promise-client

Build Status codecov NPM version

still developing, promise ftp client base on ftp

Installation

$ yarn add ftp-promise-client

How To Use

var fs = require('fs')
var path = require('path')
 
var FtpClientPromise = require('ftp-promise-client')
 
var rawPath = './app.json'
var configPath = path.join(__dirname, rawPath)
if (!fs.existsSync(configPath)) {
  throw new Error('app.json Config is not exist')
}
let appConfig = require(rawPath)
 
var ftpClient = FtpClientPromise.Factory(appConfig.ftp)
ftpClient.list().then(function (result) {
  console.log(result.response)
  ftpClient.close()
})

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.10
0.1.00

Package Sidebar

Install

npm i ftp-promise-client

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

11.3 kB

Total Files

15

Last publish

Collaborators

  • liuwill