node-ftp | An FTP client module for node.js | FTP library

 by   mscdex JavaScript Version: v0.3.10 License: MIT

kandi X-RAY | node-ftp Summary

kandi X-RAY | node-ftp Summary

node-ftp is a JavaScript library typically used in Networking, FTP, Nodejs applications. node-ftp has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i ftp' or download it from GitHub, npm.

node-ftp is an FTP client module for [node.js] that provides an asynchronous interface for communicating with an FTP server.

            kandi-support Support

              node-ftp has a medium active ecosystem.
              It has 1103 star(s) with 258 fork(s). There are 34 watchers for this library.
              It had no major release in the last 6 months.
              There are 123 open issues and 102 have been closed. On average issues are closed in 459 days. There are 17 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-ftp is v0.3.10

            kandi-Quality Quality

              node-ftp has 0 bugs and 0 code smells.

            kandi-Security Security

              node-ftp has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              node-ftp code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              node-ftp is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              node-ftp releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed node-ftp and discovered the below as its top functions. This is intended to give you an instant insight into node-ftp implemented functionality, and help decide if they suit your requirements.
            • if we re trying to connect .
            • Re - entry registration
            • write data to store
            • send data back to server
            • Finalize the stream
            • send the list
            • Forward request to the remote socket .
            • Initialize a new Parser stream .
            • Called when the timer is finished
            • create an error object
            Get all kandi verified functions for this library.

            node-ftp Key Features

            No Key Features are available at this moment for node-ftp.

            node-ftp Examples and Code Snippets

            Dist to FTP GitHub Action,Usage examples,Full on
            TypeScriptdot img1Lines of Code : 54dot img1no licencesLicense : No License
            copy iconCopy
            name: Deploy app
                  - master
                name: Build App
                runs-on: [ubuntu-latest]
                  - name: Import commit files
                    uses: actions/checkout@master
                  - name: Get yarn cache # https://github  
            JavaScriptdot img2Lines of Code : 47dot img2License : Permissive (MIT)
            copy iconCopy
                    "active": true,
                    "authentication": "FAKE_AUTH_CODE",
                    "codeurl": "",
                    "command": "python",
                    "dataurl": "  
            Dist to FTP GitHub Action,Inputs
            TypeScriptdot img3Lines of Code : 28dot img3no licencesLicense : No License
            copy iconCopy
              # Required:
                required: true
                description: Ftp user
                required: true
                description: Ftp password
                description: FTP host url
                required: true
                description: Where to place the files in your  
            Download FTP file to S3 through AWS Glue, S3 path is not recognized
            Lines of Code : 14dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            from boto3.session import Session
            import boto3
            from ftplib import FTP
            ftp = FTP()
            ftp.connect("ftp.ser.ver", 21)
            ftp.login("user", "password")
            with open("/tmp/filename.txt",'wb') as file:
                ftp.retrbinary("filename.txt", file.write)
            Extract different kinds of protocol from URL
            Lines of Code : 11dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            for url in '' '' 'ssh://' '///filestore/storage'; do
               echo "${url%?(:)//*}"
            vsftpd - Cannot upload file. Get err: 553
            Lines of Code : 48dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            sudo firewall-cmd --zone=public --add-port=20/tcp
            sudo firewall-cmd --zone=public --add-port=21/tcp
            sudo chown ftp_server:ftp_server /home/share
            echo "This file is from the FTP server." | s
            FTP stops working at consistent, but unexplained intervals? (Matlab)
            Lines of Code : 5dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            if mod(i,30) == 0 % reset the ftp every 30
                        disp("resetting FTP object at "+ i);
                        ftpobj = ftp("","myUname","myPassword","TLSMode","strict");
            copy iconCopy
                private static final int PASSIVE_MODE_PORT = 21000;
                private static final FixedHostPortGenericContainer ftp = new FixedHostPortGenericContainer<>(
            Maintain the odd/even table style after hiding tr from table
            JavaScriptdot img9Lines of Code : 67dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            const table = document.getElementById("ftp_table");
            const zebra = table => table.querySelectorAll('tr:not([hidden])')
               .forEach((tr, i) => tr.classList.toggle("grey",i % 2 === 0));
            How to script SFTP commands with PSFTP?
            Lines of Code : 21dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            C:\Users\myuser>echo ls | psftp -l myftpuser -pw mycomplexpswd sftp_server
            The server's host key is not cached. You have no guarantee
            that the server is the computer you think it is.
            The server's rsa2 key fingerprint is:
            ssh-rsa 2048 SH

            Community Discussions


            Promisify node-ftps command
            Asked 2021-Nov-01 at 11:32

            Im a trying to promisify a node-ftps function in order to use async/await. I am referring to this github link which explains how it should be done. I came up with the following code but it is still not working.

            My promisified function :



            Answered 2021-Nov-01 at 11:32

            You'll want to return the promise itself, which then resolves in the callback to exec:



            Example node.js ftp server?
            Asked 2021-May-23 at 08:12

            I need to create a node.js app that connects to this ftp server and downloads files from this directory:


            I've tried following the ftp npm package docs but I feel like I am doing something horribly wrong:



            Answered 2021-May-23 at 08:12

            There are a few points :

            • You're connecting to the local ftp with c.connect();. You need to connect to to download files from there.
            • This path cors/rinex/2021/143/nynb is a directory on the remote host. c.get doesn't work, you need to list all files in the directory then download them 1 by 1.

            The code below connect to the remote server and list all files in the directory



            Can't Promisify node-ftp Function
            Asked 2020-Feb-22 at 05:12

            I am using the node-ftp library and I would like to promisify certain methods (list() and get()).

            I am aware that there are promise-based wrappers, but I need to return the readable stream (and not write to a local file) and node-ftp allows this.

            the get() method appears to follow the right pattern for promisification, but I cannot get it to work:

            list([< string >path, ][< boolean >useCompression, ]< function >callback)

            The non-promisified code works as expected



            Answered 2020-Feb-22 at 05:12

            When you pass c.list to promisify, you want it to keep the calling context of c (so that the this used by the implementation of .list has the _pasv property), so use .bind:


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install node-ftp

            You can install using 'npm i ftp' or download it from GitHub, npm.


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone mscdex/node-ftp

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular FTP Libraries


            by curl


            by git-ftp


            by drakkan


            by robinrodricks


            by giampaolo

            Try Top Libraries by mscdex


            by mscdexJavaScript


            by mscdexJavaScript


            by mscdexJavaScript


            by mscdexC++


            by mscdexC++