Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

share_cli

Install dependencies:

bun install

Development

Register this package's share executable once:

npm link

When Node/npm is managed by nodenv, run nodenv rehash after linking so the new executable gets a shim.

You can then run the command directly while developing:

share ./my-pdf --port 1234

The link points at this working copy, so source changes are picked up without reinstalling the package. Run npm unlink --global share_cli when you no longer want the development link.

bun link without --global only registers this package so it can be linked as a dependency of another project; it does not add share to your shell.

npm package

Choose an available npm package name in package.json, then publish it:

npm login
npm publish

Users can install it globally with either package manager:

bun add --global share_cli
# or
npm install --global share_cli

Both installations expose the name from package.json#bin, so users run:

share ./my-pdf --port 1234

This CLI uses a Bun shebang, so Bun must be installed even when the package is installed through npm.

About

Share files in your local network via CLI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages