Coder Social home page Coder Social logo

folders-http's Introduction

Folders-http

This Folders Module implements file and folders transfer over http protocol for various folders.io synthetic file system. Module can be installed via "npm install folders-http".

Installation

To install 'folders-http'

Installation (use --save to save to package.json)

npm install folders-http

Basic Usage

Constructor

Constructor, could pass the special option/param in the config param.

var FoldersHttp = require('folders-http');

//'Folders'  provide the backend 'ftp' , 'local' etc 
var Folders = require('folders');

var ftpConfig = {

    // the connection string, format: ftp//username:password@host:port
    connectionString : "ftp://test:123456@localhost:3333",

    // the option to start up a embedded server when inin the folders, used in test/debug
    enableEmbeddedServer : true     

};

var config = {
  
  // Remote / localhost to provide server services   
  host:'http://folders.io',
  
  provider:Folders.provider('ftp',ftpConfig).create('localhost-ftp'),
  
  cb:function(err){console.log(err)}
  
 
 };

var http = new FoldersHttp(config);

Parameters

  1. Config
    1. host . Specifies remote or local host at which connection has to be made and route has to be opened
    2. provider. Contains reference to some folders.io synthetic file system
    3. cb .Callback which contains err information .Only gets executed if some error happens

There are no methods exposed to external world by folders-http since it works on messages received over http

folders-http's People

Contributors

haipt avatar anitahitouch avatar hanyuei avatar timote avatar

Watchers

Charles Pritchard avatar  avatar James Cloos avatar  avatar  avatar  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.