Giter Site home page Giter Site logo

bbeldame / local.dev Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 3.0 1.58 MB

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

License: MIT License

JavaScript 100.00%
localhost npm rewrite-urls port forwarding proxy port-forwarding

local.dev's Introduction

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.

local.dev's People

Contributors

bbeldame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

local.dev's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.