Gathering detailed insights and metrics for ftp-response-parser
Gathering detailed insights and metrics for ftp-response-parser
Gathering detailed insights and metrics for ftp-response-parser
Gathering detailed insights and metrics for ftp-response-parser
npm install ftp-response-parser
Typescript
Module System
Min. Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
6 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Oct 21, 2016
Latest Version
1.0.1
Package Id
ftp-response-parser@1.0.1
Size
40.98 kB
NPM Version
1.4.27
Published on
Sep 30, 2014
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
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:
1{ 2 code: 211, 3 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.', 4 isMark: false, 5 isError: false 6} 7{ 8 code: 215, 9 text: '215 UNIX Type: L8', 10 isMark: false, 11 isError: false 12} 13{ 14 code: 331, 15 text: '331 Username ok, send password.', 16 isMark: false, 17 isError: false 18} 19{ 20 code: 230, 21 text: '230 Login successful.', 22 isMark: false, 23 isError: false 24} 25{ 26 code: 200, 27 text: '200 Type set to: Binary.', 28 isMark: false, 29 isError: false 30} 31{ 32 code: 250, 33 text: '250 "/test" is the current directory.', 34 isMark: false, 35 isError: false 36}
1 2var ResponseParser = require('ftp-response-parser'); 3 4var myParser = new ResponseParser(); 5 6myParser.on('readable', function() { 7 var line; 8 while (line = myParser.read()) { 9 console.log(line.code); // will emit 215 10 } 11}); 12 13myParser.write('215 UNIX Type: L8'); 14
To get the module, with npm do:
npm install ftp-response-parser
With npm do:
npm test
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More