Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
ftp-service
Advanced tools
A simple wrapper for a simpler FTP client surface API with pool and retry management.
A simple wrapper for a simpler FTP client surface API with pool and retry management.
This wrapper is directly usable with Knifecycle.
Promise.<FTPService>
Instantiate the FTP service
Kind: global function
Returns: Promise.<FTPService>
- A promise of the FTP service
Param | Type | Description |
---|---|---|
services | Object | The services to inject |
[services.ENV] | Object | An environment object |
services.FTP | function | The configuration object as given to basic-ftp client access method |
services.FTP_CONFIG | function | The FTP service configuration object |
[services.FTP_POOL] | function | The FTP pool configuration object as given to generic-pool . |
[services.FTP_TIMEOUT] | function | The FTP service timeout as given to basic-ftp client constructor |
[services.FTP_PASSWORD_ENV_NAME] | function | The environment variable name in which to pick-up the FTP password |
services.log | function | A logging function |
[services.delay] | function | A service to manage delays |
Example
import initFTPService from 'ftp-service';
import { initDelayService } from 'common-services';
const delay = await initDelayService({
log: console.log.bind(console),
})
const fpt = await initFTPService({
FTP: {
host: 'localhost',
user: 'user',
pasword: 'pwd',
},
FTP_CONFIG: { base: '' },
ENV: process.env,
delay,
log: console.log.bind(console),
});
const files = await ftp.list('/');
FAQs
A simple wrapper for a simpler FTP client surface API with pool and retry management.
The npm package ftp-service receives a total of 17 weekly downloads. As such, ftp-service popularity was classified as not popular.
We found that ftp-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.