
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@jun-a/local-filebrowser
Advanced tools
Simple local file browser web application with CLI support. Browse your files and preview content in a web interface.
npm install -g @jun-a/local-filebrowser
npm install @jun-a/local-filebrowser
After global installation, you can use either command:
Short command (lfb
):
# Start file browser on default port (3099)
lfb
# Start on specific port
lfb -p 8080
# Browse specific directory
lfb -d ~/Documents
# Combine options
lfb -p 8080 -d ~/Downloads
Full command (local-file-browser
):
# Start file browser on default port (3099)
local-file-browser
# Start on specific port
local-file-browser -p 8080
# Browse specific directory
local-file-browser -d ~/Documents
# Combine options
local-file-browser -p 8080 -d ~/Downloads
-p, --port <number>
: Port number (default: 3099)-d, --path <path>
: Directory path to browse (default: current directory)-h, --help
: Show help message-v, --version
: Show version numberconst path = require('path');
const { spawn } = require('child_process');
// Set environment variables
process.env.PORT = '8080';
process.env.DATA_PATH = path.resolve('./my-directory');
// Start server
require('@jun-a/local-filebrowser');
git clone <repository-url>
cd local-filebrowser
npm install
npm start
PORT
: Server port (default: 3099)DATA_PATH
: Base directory path (default: current working directory)http://localhost:3099
(or your specified port)path
(directory path)path
(file path)path
(file path)@jun-a/local-filebrowser/
├── bin/
│ └── lfb.js # CLI executable
├── public/
│ ├── css/
│ │ └── styles.css
│ └── js/
│ └── app.js
├── views/
│ └── index.html
├── server.js # Main server file
├── package.json
└── README.md
ISC License
lfb
commandFAQs
Simple file browser web application built with Express.js
The npm package @jun-a/local-filebrowser receives a total of 17 weekly downloads. As such, @jun-a/local-filebrowser popularity was classified as not popular.
We found that @jun-a/local-filebrowser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.