1.0.0 ⢠Published 5 months ago
airshare v1.0.0
Airshare š
A simple and elegant file-sharing server for your local network. Share files and directories with a beautiful, responsive web interface featuring dark/light theme support.
Features āØ
- šÆ Zero Configuration: Start sharing with a single command.
- š Smart Theming: Dark/Light mode with system preference detection.
- š± Responsive Design: Works seamlessly on all devices.
- š Easy Navigation: Intuitive browsing with breadcrumbs.
- š» Cross-Platform: Works on Windows, macOS, and Linux.
- š Network Sharing: Access files from any device on your network.
- š File Details: View size and modification date at a glance.
Installation š¦
Install via npm:
npm install -g airshare
Quick Start š
Share the current directory:
airshare
Share a specific directory:
airshare ~/Documents
Use a custom port (default: 3000):
airshare --port 8080
Usage Guide š
Command-Line Interface
Usage: airshare [directory] [options]
Arguments:
directory Directory to share (default: current directory)
Options:
-V, --version Output the version number
-p, --port <number> Port to run the server on (default: 3000)
-h, --help Display help information
Features in Detail š
š Theme Support
- Automatic system theme detection.
- Manual theme toggle with persistent preference.
- Smooth transitions between themes.
- High contrast, accessible design.
š File Navigation
- Intuitive breadcrumb navigation.
- Clear file/folder distinction with icons.
- File size information in MB.
- Last modified date.
- Automatic sorting (folders first).
- Long filename truncation with ellipsis.
š Network Access
- Automatic local IP detection.
- Easy-to-share network URLs.
- Cross-device compatibility.
- Zero configuration required.
Browser Compatibility š
Works with all modern browsers:
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
- Mobile browsers
Project Structure š
airshare/
āāā bin/
ā āāā cli.js # Command-line interface
āāā src/
ā āāā index.js # Main entry point
ā āāā server/
ā ā āāā index.js # Express server setup
ā ā āāā middleware.js # Express middleware
ā āāā utils/
ā ā āāā path.js # Path handling utilities
ā āāā views/
ā āāā templates.js # HTML templates
ā āāā styles.js # CSS styles
āāā package.json
Author āØ
Mohammad Khakshoor
- GitHub: @mohammadkhakshoor
- npm: airshare
Support š¬
If you encounter any issues or have questions:
- Check the GitHub Issues.
- Open a new issue if needed.
- Include relevant details about your environment and use case.
Changelog š
Version 1.0.0
- Initial release.
- Feature-rich file-sharing server.
- Dark/Light theme support with system detection.
- Responsive design for all devices.
- Command-line interface.
- Programmatic API.
Enjoy seamless local file sharing with Airshare! š
1.0.0
5 months ago