npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jignesh119/cli-share

v1.0.0

Published

cli tool to share files btw devices in local network without leaving cli

Downloads

2

Readme

Cli-Share

Cli-Share is a command-line tool for sharing files and messages between devices on the same local network without leaving the CLI. Users can transfer files by simply scanning a QR code or visiting the address displayed in the CLI. The app supports both file and message sharing between a host (the one running the CLI) and clients (those who scan the QR code or visit the provided address).

Features

  • File Sharing: Share files from the host to clients over the same local network.
  • Message Passing: Send and receive messages between the host and clients.
  • Folder Sharing: Automatically zip folders before sending them to clients.
  • Client Uploads: Clients can upload files or send messages back to the host via the web interface.
  • QR Code Scanning: Clients can easily access the shared files or message interface by scanning a QR code.

Constraints

  • Local Network Requirement: Both the host and clients must be on the same local network.
  • Firewall Settings: The host must expose their local IP by disabling any firewall settings that could block access.
  • Zipped Folders: When sharing folders, the content is zipped before being sent to clients.

Installation

To install Cli-Share, use npm:

npm install -g @jignesh119/cli-share

Usage

cli-share - CLI tool to share files between devices in a local network without leaving the CLI.

Usage:
  - Message Passing: cli-share [--message MESSAGE]
    $ cli-share --message,-m MESSAGE

  - File Sharing: cli-share [option {value}] <path>
    $ cli-share /path/to/file || /path/to/folder
    $ cli-share --receive,-r /path/to/receive/file/to
    $ cli-share --port,-p PORT
    $ cli-share --ip,-i IP_ADDRESS
    $ cli-share --help
    $ cli-share --version

Options:
  -r --receive   Enable upload mode, the given path is used to store received files (defaults to current working directory).
  -p --port      Use a custom port for the server; ensure the port is between 1024 and 65535 to avoid conflicts.
  -i --ip        Bind the web server to a custom IP; the IP must be accessible within the subnet.
  -m --message   Send a message to the client.
  -h --help      Show this screen.
  -v --version   Show the version.

Examples:
  $ cli-share ./assets.pdf
  $ cli-share one.txt -p 4000 --ip 192.168.1.10
  $ cli-share sampleFolder
  $ cli-share --receive ./Downloads
  $ cli-share -r
  $ cli-share -r ./Downloads -p 5000 -i 192.168.200.23
  $ cli-share -m "I love cli"
  $ cli-share --message "messaging..." -p 4000 -i 192.168.12.24

Inspiration

This project is inspired by qrcp, which allows transferring files via QR codes.