sftp-resolver-fs

2.0.4 • Public • Published

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Coverage Status Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs XO code style downloads Commitizen friendly

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

Readme

Keywords

Package Sidebar

Install

npm i sftp-resolver-fs

Weekly Downloads

20

Version

2.0.4

License

BSD-2-Clause

Unpacked Size

12.5 kB

Total Files

5

Last publish

Collaborators

  • arlrac77