0.3.0 • Published 7 years ago

mockd v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

MockD

Mock Domains on localhost .

Getting Started

Installing

npm i -g mockd

Usage

  • edit ~/.mockd/proxy.json

    	example:
    		
    		{
    		"akc": "http://127.0.0.1:8002",
    		"kd": "https://www.youdao.com"
    		}
  • edit /etc/hosts

    		127.0.0.1 akc
    		127.0.0.1 kd
  • start server

    	```
    	sudo mockd # require root permission
    	```
  • when visited akc , you will be proxy to http://127.0.0.1:8002

    	ps: if proxy.json file changed , you need to restart your mockd server

License

This project is licensed under the MIT License - see the LICENSE.md file for details

0.3.0

7 years ago

0.2.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago