Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including pimatic-filebrowser with all npm packages installed. Try it out:

require("pimatic/package.json"); // pimatic is a peer dependency. var pimaticFilebrowser = require("pimatic-filebrowser")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

pimatic-filebrowser v0.9.2

Pimatic plugin to provide a simple web file browser for a local directory.

pimatic filebrowser plugin

Pimatic plugin to provide a simple web file browser for a local directory.

Configuration:

{
   "plugin": "filebrowser",
   "mappings": [
     {
       "path": "/files",
       "directory": "/media/usb1"
     }
   ]
 }

With this config you can browse your files in /media/usb1 with http://your-ip/files. Make sure you reboot pimatic after applying these settings or you will get a Cannot GET /files error message.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free