1.5.5 • Published 8 years ago
expose-fs-patched v1.5.5
expose-fs-patched
forked and patched from expose-fs
Expose a file system over http
npm install -g expose-fs-patchedUsage
This install a command line tool called expose-fs-patched
expose-fs-patched . # expose . on port 8441Then do
curl localhost:8441 # returns a directory listing in JSON format
curl localhost:8441/some-file.txt # returns the file content
curl -X PUT --data 'hello world' localhost:8441/some-file.txt # writes a file
curl -X POST localhost/some-dir # creates a new directoryRun expose-fs-patched --help for additional options
License
MIT