sftp-resolver-fs
v2.0.4
Published
resolves sftp urls
Downloads
33
Readme
sftp-resolver-fs
resolves sftp urls
API
Table of Contents
SFTPScheme
Extends URLScheme
URLScheme for sftp access
Parameters
options
Object (optional, default{}
)options.privateKey
(UInt8Array | Buffer)
get
Creates a readable stream for the content of th file associated to a given file URL
Parameters
context
Contexturl
URL of the a fileoptions
(Object | string)? passed as options to fs.createReadStream()
Returns Promise<ReadableStream> of the file content
name
Scheme name is 'sftp'
Returns string 'sftp'
defaultPort
Returns number 22 the sftp default port
isSecure
Returns boolean true
optionsFromEnvironment
Extract options suitable for the constructor form the given set of environment variables
Parameters
env
Object
Returns Object undefined if no suitable environment variables have been found
install
With npm do:
npm install sftp-resolver-fs
license
BSD-2-Clause