Coder Social home page Coder Social logo

959.js's Introduction

959.js

A simple FTP server written in pure ECMAScript 6.

Features:

  • User management through simple JSON configuration file
  • Implements RFC 959 (but without active data transfer)
  • Implements RFC 697 (CWD)
  • CHMOD of files
  • Working directories per user
  • port ranges for passive mode
  • instant configuration reloading. you do not have to restart the ftp server when you change the ftp-config.json

Planned features:

I plan implementing the following features. Pull requests are welcomed.

  • configurable configuration file name
  • Docker image
  • Windows compatibility
  • Anonymous support
  • Testing...
  • Remove moment.js dependency
  • TLS support (FTPS, FTPES)
  • RFC 2428 (IPv6)
  • RFC 7151 (Virtual Hosts)
  • RFC 3659

Usage

Install 959.js with the following command:

npm install -g 959.js

Then create a file named ftp-config.json in a directory which will contain the server configuration.

{}

Then you can add and remove users by using nftp add-user [YOUR_USERNAME] and answer the questions that are asked.

After this, you can start your FTP-Server like the following:

sudo nftp serve

sudo is necessary, because it has to be bound to port 21.

To configure the passive ports, server address and control port you can edit the configuration file like this:

{
    "address": "[YOUR_IP_ADDRESS]",
    "port": 21,
    "passivePorts": ["10000-11000", "1337"],
    "users": [
        // ...
    ]
}

Troubleshooting

  • sudo: nftp: command not found

    If you encounter this error, then you can workaround this with the following command:

    sudo $(which nftp) serve

License

Copyright (c) 2017 Timm Decker Licensed under the MIT license.

959.js's People

Contributors

nyon avatar

Stargazers

Lars avatar Lutz Selke avatar

Watchers

Lutz Selke avatar James Cloos avatar  avatar Lars avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.