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