fs-stream-websocket
fs.createReadStream
and fs.createWriteStream
over a websocket, assumedly in a browser. Uses websocket-stream for file streaming.
This module is incomplete, and has no security or sandbox for restricting file read/writing.
Usage
In the client:
var fs = ; // gives you fs.js // optional, defaults shownfs // This will be streamed from the server.fs;
On the server:
var fsserver = ; // gives you server.jsvar http = ;var server = http;var wss = server: server // optional, defaults shownvar config = root: process // directory to use for file root (you can get out with ..) ;
Tests
npm test