Socket
Book a DemoInstallSign in
Socket

expose-fs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expose-fs

expose your filesystem using a http server

latest
npmnpm
Version
1.5.1
Version published
Maintainers
1
Created
Source

expose-fs

Expose a file system over http

npm install -g expose-fs

Usage

This install a command line tool called expose-fs

expose-fs . # expose . on port 8441

Then 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 directory

Run expose-fs --help for additional options

License

MIT

FAQs

Package last updated on 23 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts