0.1.1 • Published 6 years ago

ftp-promise-client v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

0.1.1

6 years ago

0.1.0

6 years ago