Skip to content

bbeldame/local.dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local.dev NPM Package Downloads NPM Package Version

‼️ only works on Windows for multiple port forwarding ‼️

Mac users, please read the known issues part before installing the package.

Port forwarding and renaming on localhost made easy

Demo

Local.dev offers you a simple command line to improve your node workflow by providing easy and persistant port forwading on localhost.

Did you already struggled to remember all of those localhost:port that you juste create ? Or don't you want to rename the boring localhost:8080 to whatever.dev ? Because I did !

With local.dev, you can rename any localhost:port to any name possible, you don't even need to add a domain dot if you don't feel like it.

💿 Installation

npm install -g local.dev

⚡ Usage

Every command can be made with localdev instead of local.dev.

Add a new local.dev url. You will need the root priviliges for this one

local.dev add 8080 this-cool-url

List all of your local.dev active

local.dev list

Remove a local.dev

local.dev rm this-cool-url

📆 Future updates

  • Windows compatibility
  • Linux compatibility
  • Remove command
  • Persistant host on Mac
  • Multiple port forward on Mac

😱 Known issues

The local.dev is reset if the mac shutdown.

To set it again, you have to delete it first with local.dev rm your-site . It's a work in progress for this one, I have to find a good solution to edit the pf.conf file.

Mutliple local.dev doesn't work on mac, still a problem with pf.conf.

Renaming only one localhost at a time makes this package useless on Mac, I wouldn't recommend using it for the moment. Work in progress.

About

📦 Allow localhost:port to be renamed to any url possible a.k.a the port forwarding for local hosting

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published