
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
ftp-response-parser
Advanced tools
This module provides a fast, lightweight streaming parser for FTP response format strings.
Given a string like this:
211-Features supported:\n
EPRT\n
EPSV\n
MDTM\n
MLST type*;perm*;size*;modify*;unique*;unix.mode;unix.uid;unix.gid;\n
REST STREAM\n
SIZE\n
TVFS\n
UTF8\n
211 End FEAT.\n
215 UNIX Type: L8\n
331 Username ok, send password.\n
230 Login successful.\n
200 Type set to: Binary.\n
250 "/test" is the current directory.\n
it will stream the following objects:
{
code: 211,
text: '211-Features supported:\n EPRT\n EPSV\n MDTM\n MLST type*;perm*;size*;modify*;unique*;unix.mode;unix.uid;unix.gid;\n REST STREAM\n SIZE\n TVFS\n UTF8\n211 End FEAT.',
isMark: false,
isError: false
}
{
code: 215,
text: '215 UNIX Type: L8',
isMark: false,
isError: false
}
{
code: 331,
text: '331 Username ok, send password.',
isMark: false,
isError: false
}
{
code: 230,
text: '230 Login successful.',
isMark: false,
isError: false
}
{
code: 200,
text: '200 Type set to: Binary.',
isMark: false,
isError: false
}
{
code: 250,
text: '250 "/test" is the current directory.',
isMark: false,
isError: false
}
var ResponseParser = require('ftp-response-parser');
var myParser = new ResponseParser();
myParser.on('readable', function() {
var line;
while (line = myParser.read()) {
console.log(line.code); // will emit 215
}
});
myParser.write('215 UNIX Type: L8');
To get the module, with npm do:
npm install ftp-response-parser
With npm do:
npm test
MIT
FAQs
Parser for FTP server responses
The npm package ftp-response-parser receives a total of 421,087 weekly downloads. As such, ftp-response-parser popularity was classified as popular.
We found that ftp-response-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.