Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

barnard59-ftp

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barnard59-ftp

FTP support for Linked Data pipelines

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
953
increased by17.36%
Maintainers
1
Weekly downloads
 
Created
Source

barnard59-ftp

Build Status

FTP support for Linked Data pipelines.

Examples

list

The pipeline defined in examples/list.ttl lists all files in the root directory of the FTP server running on localhost port 8020 using the user/password test/1234. To run a server with that configuration, just use the following command:

node examples/server.js

The pipeline can be started like this:

./node_modules/.bin/barnard59 run --format=text/turtle --pipeline=http://example.org/pipeline#pipeline --verbose examples/list.ttl

Operations

This package provides operations to make single requests to an FTP server. The following options are common to all the operations.

Common options:

  • protocol (string): "ftp" (default) or "sftp"
  • host (string): Hostname or IP address of the server (default "localhost")
  • port (integer): Port number of the server (default 21 for FTP, 22 for SFTP)
  • user (string): Username for authentication
  • password (string): Password for password-based authentication
  • privateKey (mixed): (SFTP-only) Buffer or string that contains a private key for either key-based or hostbased user authentication (OpenSSH format).
  • passphrase (string): (SFTP-only) For an encrypted private key, this is the passphrase used to decrypt it.

list

List files in a given remote directory. Returns a stream of file names.

Options:

  • pathname (string): Path of the directory to list
  • All the common options defined above

read

Read the content of a remote file at a given path. Returns a stream of string data.

Options:

  • filename (string): Path of the file to read
  • All the common options defined above

move

Move a remote file from one path to another.

Options:

  • source (string): Source path
  • target (string): Target path
  • All the common options defined above

FAQs

Package last updated on 20 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc