Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

Keywords

install

npm i sftp-resolver-fs

Downloadsweekly downloads

209

version

2.0.4

license

BSD-2-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar