Skip to content

arlac77/sftp-resolver-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

sftp-resolver-fs

resolves sftp urls

API

Table of Contents

SFTPScheme

Extends URLScheme

URLScheme for sftp access

Parameters

get

Creates a readable stream for the content of th file associated to a given file URL

Parameters

  • context Context
  • url URL of the a file
  • options (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

Returns Object undefined if no suitable environment variables have been found

install

With npm do:

npm install sftp-resolver-fs

license

BSD-2-Clause